Nicholas Clark via RT wrote:
> On Tue, Mar 17, 2009 at 05:59:52PM +0100, Jonathan Worthington wrote:
>> Nicholas Clark wrote:
>> >Do you have list assignment working properly? ie:
>> >
>> > state (@foo) = @bar;
>> >
>> >and, I think,
>> >
>> > state (@foo) = baz();
>> >
>> >
>> Aye, thankfully that just fell naturally out of Rakudo's existing list
>> assignment implementation, though it was under-tested. So I just added:
>
> That feels good. That feels like a clean design.
>
>> my @bar = 1,2,3;
>> sub swatest {
>> state (@foo) = @bar;
>> my $x = @foo.perl;
Just a minor nit: I don't want to see .perl in the test suite unless
where necessary, because it doesn't produce output in a canonical
format. (For example the "elf" compiler's .perl method produces no
spaces after the commas). So I've changed that @foo.join('|').
Cheers,
Moritz