Sorry. Hit wrong button.

---------- Forwarded message ----------
From: Vasily Chekalkin <[email protected]>
Date: Mon, Apr 19, 2010 at 7:25 PM
Subject: Re: [svn:parrot] r45779 -
branches/immutable_strings_part2/runtime/parrot/library/Test
To: chromatic <[email protected]>


Hello.

On Mon, Apr 19, 2010 at 5:10 PM, chromatic <[email protected]> wrote:
>> -    diagnosis .= ' is not a nested data structure'
>> +    diagnosis  = diagnosis . ' is not a nested data structure'
>>      result     = 0
>>      goto report_result
>
> That's going to lead to annoying code.  We should instead consider patching
> IMCC to rewrite the infix op to the concat_s_s_s form.

I tried it. But there is no such functionality in IMCC. It just emit
"concat $S0, $S1" when it see "$S0 .= $S1".

I actually considering to put clear statement somewhere in docs stated
"'in-place' concat op is syntax sugar for 3-args ops. E.g. C<concat
foo, bar> is actually C<foo = concat foo, bar>" and keep 2-args form.

--
Bacek.
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to