Skip to content
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

Stash values are all Mu #3578

Closed
p6rt opened this issue Nov 8, 2014 · 12 comments
Closed

Stash values are all Mu #3578

p6rt opened this issue Nov 8, 2014 · 12 comments
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Nov 8, 2014

Migrated from rt.perl.org#123154 (status was 'resolved')

Searchable as RT123154$

@p6rt
Copy link
Author

p6rt commented Nov 8, 2014

From @hoelzro

Example​:

  .say for OUTER​::OUTER​::.values; # a bunch of Mus

Shouldn't this be equivalent to my $stash = OUTER​::OUTER​::; .say for %stash.map({ %stash{$_} })?

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

From @coke

On Fri Nov 07 20​:44​:27 2014, rob@​hoelz.ro wrote​:

Example​:

.say for OUTER​::OUTER​::.values; # a bunch of Mus

Shouldn't this be equivalent to my $stash = OUTER​::OUTER​::; .say for
%stash.map({ %stash{$_} })?

I'm not sure that does what you think it does; Fixing the sigil typo, I get​:

15​:08 < [Coke]> m​: .say for OUTER​::OUTER​::.values;
15​:08 <+camelia> rakudo-moar 6a1879​:
OUTPUT«(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)…»

15​:08 < [Coke]> m​: my %stash = OUTER​::OUTER​::; .say for %stash.map({ %stash{$_}
  })
15​:08 <+camelia> rakudo-moar 6a1879​: OUTPUT«Use of uninitialized value
  <element> of type Mu in string context in block at
  /tmp/bInF751r1z​:1␤(Any)␤Use of uninitialized value <element>
  of type Mu in string context in block at
  /tmp/bInF751r1z​:1␤(Any)␤Use of uninitialized value <element>
  of …»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

From @hoelzro

The .map({ %stash{$_} }) won't do the right thing anymore; .map({ %stash{.key} }) is now the right way to do it. However, now *that* gives me Mus? That confuses me, but at least the two forms are consistent.

On 2015-08-29 12​:09​:44, coke wrote​:

On Fri Nov 07 20​:44​:27 2014, rob@​hoelz.ro wrote​:

Example​:

.say for OUTER​::OUTER​::.values; # a bunch of Mus

Shouldn't this be equivalent to my $stash = OUTER​::OUTER​::; .say for
%stash.map({ %stash{$_} })?

I'm not sure that does what you think it does; Fixing the sigil typo,
I get​:

15​:08 < [Coke]> m​: .say for OUTER​::OUTER​::.values;
15​:08 <+camelia> rakudo-moar 6a1879​:
OUTPUT«(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)␤(Mu)…»

15​:08 < [Coke]> m​: my %stash = OUTER​::OUTER​::; .say for %stash.map({
%stash{$_}
})
15​:08 <+camelia> rakudo-moar 6a1879​: OUTPUT«Use of uninitialized value
<element> of type Mu in string context in block at
/tmp/bInF751r1z​:1␤(Any)␤Use of uninitialized value
<element>
of type Mu in string context in block at
/tmp/bInF751r1z​:1␤(Any)␤Use of uninitialized value
<element>
of …»

@p6rt
Copy link
Author

p6rt commented Oct 5, 2015

From @jnthn

On Fri Nov 07 20​:44​:27 2014, rob@​hoelz.ro wrote​:

Example​:

.say for OUTER​::OUTER​::.values; # a bunch of Mus

Shouldn't this be equivalent to my $stash = OUTER​::OUTER​::; .say for
%stash.map({ %stash{$_} })?

Fixed now, and test coverage added in S02-names/pseudo.t.

@p6rt
Copy link
Author

p6rt commented Oct 5, 2015

@jnthn - Status changed from 'open' to 'resolved'

@p6rt
Copy link
Author

p6rt commented Oct 31, 2015

From @coke

On Mon Oct 05 10​:28​:55 2015, jnthn@​jnthn.net wrote​:

On Fri Nov 07 20​:44​:27 2014, rob@​hoelz.ro wrote​:

Example​:

.say for OUTER​::OUTER​::.values; # a bunch of Mus

Shouldn't this be equivalent to my $stash = OUTER​::OUTER​::; .say for
%stash.map({ %stash{$_} })?

Fixed now, and test coverage added in S02-names/pseudo.t.

Still broken on JVM - reopening.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 31, 2015

@coke - Status changed from 'resolved' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 10, 2015

From @jnthn

Removing as xmas dependency, since it's now a JVM-only bug and Moar is the primary target for xmas.

@p6rt
Copy link
Author

p6rt commented Sep 10, 2017

From @usev6

The test in S02-names/pseudo.t passes on JVM now. I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Sep 10, 2017

From @usev6

The test in S02-names/pseudo.t passes on JVM now. I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Sep 10, 2017

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 10, 2017
@p6rt p6rt added the JVM Related to Rakudo-JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM
Projects
None yet
Development

No branches or pull requests

1 participant