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

Cannot push native ints to an array on parrot backend #3350

Closed
p6rt opened this issue Feb 28, 2014 · 4 comments
Closed

Cannot push native ints to an array on parrot backend #3350

p6rt opened this issue Feb 28, 2014 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Feb 28, 2014

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

Searchable as RT121349$

@p6rt
Copy link
Author

p6rt commented Feb 28, 2014

From @FROGGS

<FROGGS> r​: my @​j; my int $j = 42; @​j.push($j); say @​j
<camelia> rakudo-jvm 1726c7, rakudo-moar 1726c7​: OUTPUT«42␤»
<camelia> ..rakudo-parrot 1726c7​: OUTPUT«Cannot assign a non-Perl 6 value to a Perl 6 container␤ in method REIFY at gen/parrot/CORE.setting​:8407␤ in method reify at gen/parrot/CORE.setting​:7279␤ in method gimme at gen/parrot/CORE.setting​:7724␤ in method push at gen/parrot/CORE.setti…»

Pushing the native int explodes only on parrot.

@p6rt
Copy link
Author

p6rt commented Oct 25, 2014

From @usev6

This now also works on Parrot (same result on Moar and JVM)​:

$ perl6-p -e 'my @​j; my int $j = 42; @​j.push($j); say @​j'
42

I added a test to S02-types/native.t with commit Raku/roast@f9b1da5bb8

I'm closing this ticket now.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 25, 2014

From @usev6

This now also works on Parrot (same result on Moar and JVM)​:

$ perl6-p -e 'my @​j; my int $j = 42; @​j.push($j); say @​j'
42

I added a test to S02-types/native.t with commit Raku/roast@f9b1da5bb8

I'm closing this ticket now.

@p6rt p6rt closed this as completed Oct 25, 2014
@p6rt
Copy link
Author

p6rt commented Oct 25, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant