New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list assignment: arrays on LHS aren't filled properly #477
Comments
From @moritz23:27 < moritz_> rakudo: my ($x, @y) = <a b c d e>; say @y.perl so @y gets only the first element, when in fact it should get all the rest. |
From @cspencerWhen declaring one or more array variables in list syntax: my (@a, @b); they are not properly initialized and are left as Undef objects. @a.push(2); Method 'push' not found for invocant of class 'Undef' |
From @pmichaudOn Thu, Dec 11, 2008 at 02:28:18PM -0800, Moritz Lenz wrote:
The problem is that array variables in lists are being initialized to This will be fixed as part of signature refactoring, coming soon. Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzCory Spencer (via RT) wrote:
Added tests to t/spec/S04-declarations/my.t in (pugs) r24516. Moritz |
The RT System itself - Status changed from 'new' to 'open' |
From @cspencerPossible fix attached (though I'm nowhere near an expert on the On Fri Dec 19 14:17:03 2008, pmichaud wrote:
|
From @cspencervariable-decl.patchIndex: src/parser/actions.pm
===================================================================
--- src/parser/actions.pm (revision 34165)
+++ src/parser/actions.pm (working copy)
@@ -2392,7 +2392,7 @@
:name($_),
:isdecl(1),
:scope($scope),
- :viviself('Perl6Scalar')
+ :viviself(container_type($sigil))
));
# Add block entry.
|
From @pmichaudOn Sat Dec 20 18:48:57 2008, cspencer wrote:
Yes, the fix appears to work (and doesn't cause any failures); now Thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#61300 (status was 'resolved')
Searchable as RT61300$
The text was updated successfully, but these errors were encountered: