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
Rakudo won't push things to global hash variables, silently dropping them instead #973
Comments
From @masak<masak> rakudo: %*h.push: $*IN.slurp.join.comb.map(-> $k {$k=>1}); say %*h.perl |
From @perlpilotOn Tue May 05 00:13:45 2009, masak wrote:
Initializing the global hash seems to help. < PerlJam> rakudo: %*h = (); %*h.push: 1 => 2; %*h.perl.say Even if you initialize it badly: < PerlJam> rakudo: eval "%*h = 1"; %*h.perl.say; %*h.push: 1=>2; (the eval is there because %*h = 1; would normally die) |
@perlpilot - Status changed from 'new' to 'open' |
From @kylehaOn Tue May 05 00:13:45 2009, masak wrote:
In Rakudo e5562c90e4bc421b562f68f8fa1ddc1e776eab12, this does something $ ./perl6 -e '%*h.push: 1 => 2; %*h.perl.say' After a brief conversation on #perl6, I think this needs a spec. |
From @pmichaudS03 says: "It is illegal to assign or bind a dynamic variable that does not GLOBAL::<$mynewvar> = $val;" Based on this, it's illegal to attempt to .push to an undeclared %*h; Rejecting ticket. Pm |
@pmichaud - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#65388 (status was 'rejected')
Searchable as RT65388$
The text was updated successfully, but these errors were encountered: