Fwd: [svn:parrot] r45779 - branches/immutable_strings_part2/runtime/parrot/library/Test
Vasily Chekalkin
bacek at bacek.com
Mon Apr 19 09:26:28 UTC 2010
Sorry. Hit wrong button.
---------- Forwarded message ----------
From: Vasily Chekalkin <bacek at bacek.com>
Date: Mon, Apr 19, 2010 at 7:25 PM
Subject: Re: [svn:parrot] r45779 -
branches/immutable_strings_part2/runtime/parrot/library/Test
To: chromatic <chromatic at wgz.org>
Hello.
On Mon, Apr 19, 2010 at 5:10 PM, chromatic <chromatic at wgz.org> 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.
More information about the parrot-dev
mailing list