Andy Colson wrote:
Hi all, what's wrong with this code:
use v6;
sub multireturn($x, $y)
{
my $a = $x * 2;
my $b = $y * 2;
return($a, $b);
}
my($a, $b) = multireturn(2, 3);
Nothing that I can see.
using:
This is Rakudo Perl 6, revision 32970 built on parrot 0.8.1-devel
for i486-linux-thread-multi.
I get:
Method 'lvalue' not found for invocant of class 'PAST;Stmts'
Yes - while the code is fine, it uses list assignment, which we don't
currently support in Rakudo. Hopefully it won't be too long until that's
in place.
Thanks,
Jonathan