Fraction interpolation #1173
Replies: 4 comments
-
Looks like this is part of how MathObjects override perl operators and order of operations. Note I also see that The reason I think |
Beta Was this translation helpful? Give feedback.
-
Note, one thing I discovered in testing your example problem (which didn't work because |
Beta Was this translation helpful? Give feedback.
-
As @somiaj mentions, this has to do with the MathObject overrides. It turns out that there are two different ones involved, here: the concatenation operator ( The concatenation operation is overridden by the MathObject The effect of If you think at sub stringify {
(shift)->_dot('');
} in |
Beta Was this translation helpful? Give feedback.
-
OK, thanks for the explanations. I have a follow-up question but now this has evolved to where I think it's better to post it to the forum. I'll do that later today. |
Beta Was this translation helpful? Give feedback.
-
I don't understand why the two strings printed here are different.
The first makes
(1/2) x
and the second makes1/2 x
.Note this is what I see in 2.19 and develop, so it's not something to do with the recent changes to Fraction. But I noticed this while debugging something. Is the string interpolation of
$a
within"$a x"
somehow aware of what characters are adjacent to it?Beta Was this translation helpful? Give feedback.
All reactions