On Mar-13, Luke Palmer wrote:
> luka frelih writes:
> > >But how should the two interpretations of x.x be resolved? Is that
> > >concatenation or method calling?
> > 
> > currently, the  pir line
> >     S5 = S5 . 'foo'
> > produces
> >     error:imcc:object isn't a PMC
> > 
> > concatenation with . seems to be gone
> > i cannot think of a good replacement for it
> 
> Well, Perl 6 uses ~ .  I think that would be a fair replacement:
> 
>     S5 = S5 ~ 'foo'

That currently means binary xor in imcc, so if we changed it we'd
break compatibility with current compilers and scripts.

OTOH, it sounds like I already broke it by changing the outcome of the
ambiguous x.x interpretation -- oops. I can change it back with
precedence games, but would rather not exert the effort, since I think
using ~ is a better way to go. (Barring other better ideas, that is.)
I tend to use the 'concat' op in my own code anyway. So I'll abide by
Leo's or Melvin's ruling.

Reply via email to