# New Ticket Created by Ilya Belikin
# Please include the string: [perl #63912]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63912 >
Hi there,
> sub foo { return ([1,2],3) }; my ($a, $b) = foo(); say $a; say $b;
1 2
3
> sub foo { return ([1,2],3) }; my (@a, $b) = foo(); say @a; say $b;
1 23
Use of uninitialized value
part of discussion:
Jonathan Worthington: I guess if it's a signature binding, then the $b
would get the 3...
Jonathan Worthington: So I think Rakudo may well be wrong here.
<...>
ihrd: > sub foo { return 1,2 }; foo();
too many arguments passed (2) - at most 1 params expected
Jonathan Worthington: hmm
ihrd: I think this is error message not so informative
Jonathan Worthington: Well, I think we just don't properly support
multiple return values.
Jonathan Worthington: As in, unimplemented. That should eventually
work, not give any error.
Ilya