# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #124210]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=124210 >


<TimToady> m: my (\a,\b) = 1,2; say a
<camelia> rakudo-moar 02e1e9: OUTPUT«(Any)␤»
<TimToady> seems like a bug
* masak submits rakudobug
<jnthn> That should either DWYM or whine, I guess.
<TimToady> m: my (\a,\b) := \(1,2); say a
<camelia> rakudo-moar 02e1e9: OUTPUT«(Any)␤»
<TimToady> m: my (\a,\b) ::= \(1,2); say a
<camelia> rakudo-moar 02e1e9: OUTPUT«(Any)␤»
<jnthn> OK, *that* one certainly should work.
<jnthn> The assignment one is more dubious.
<jnthn> But silently failing is certainly wrong.
<masak> m: my ($a, $b) = 1, 2; say $a
<camelia> rakudo-moar 02e1e9: OUTPUT«1␤»
<masak> m: my \a = 1; say a
<camelia> rakudo-moar 02e1e9: OUTPUT«1␤»
<masak> since those two work, I'd expect TimToady's first one to work.
<jnthn> masak: That's not obvious.
<jnthn> masak: \a variables are SSA and we don't create a container.
<TimToady> m: my (\a) = 1; say a
<camelia> rakudo-moar 02e1e9: OUTPUT«(Any)␤»
<jnthn> I *thought* we had something in place that looked at
signatures and complained if they had anything that made them too
complex to drop to a simple list of containers.
<jnthn> m: my ($a, *@b) = 1, 2;
<camelia> rakudo-moar 02e1e9: ( no output )
<jnthn> Hmm
<jnthn> I must be mis-rememebering or something.

Either the first eval should fail loudly, or it should work. We're not
quite sure. But it should not silently fail as it does currently.

Reply via email to