Juerd wrote:
Austin Hastings skribis 2004-09-24 12:05 (-0400):
Actually, that raises a good point: Should "3 foo" convert to number 3,
or should it convert to C<3 but remainder(" foo")> ?
Would the remainder then be dropped when the numeric value changes?
I assume that replacing the value replaces the value's properties. What
happens when you do:
$x = 1 but false;
$x++;
print $x, $x ?? " (true)" :: " (but false)", "\n";
Does it emit true or false?
In theory, if you're using the remainder for parsing you'd like it to stay:
$x = "3 foo";
$x++;
print $x; # 4 foo
but I think it would be survivable if that didn't happen.
=Austin