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

Problems with self referential structures #4702

Closed
p6rt opened this issue Oct 31, 2015 · 4 comments
Closed

Problems with self referential structures #4702

p6rt opened this issue Oct 31, 2015 · 4 comments
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Oct 31, 2015

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

Searchable as RT126518$

@p6rt
Copy link
Author

p6rt commented Oct 31, 2015

From @coke

14​:02 < [Coke]> r​: my $foo = [42 ]; $foo[1] = $foo; say $foo.perl; say
  $foo.perl.EVAL
14​:02 <+camelia> rakudo-jvm 078d0b​: OUTPUT«(my \Array_897186540 = $[42,
  Array_897186540])␤java.lang.NullPointerException␤ in block
  <unit> at EVAL_0​:1␤ in block <unit> at /tmp/tmpfile​:1␤␤»
14​:02 <+camelia> ..rakudo-moar 078d0b​: OUTPUT«(my \Array_140538609984720 =
  $[42, Array_140538609984720])␤[42 (Mu)]␤»

JVM throws a NPE.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Sep 10, 2017

From @usev6

This works now (and the test in S02-names-vars/list_array_perl.t is unfudged)​:

$ ./perl6-j -e 'my $foo = [42 ]; $foo[1] = $foo; say $foo.perl; say $foo.perl.EVAL'
((my @​Array_1924162593) = $[42, @​Array_1924162593])
(\Array_532302454 = [[42 Array_532302454]])

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Sep 10, 2017

From @usev6

This works now (and the test in S02-names-vars/list_array_perl.t is unfudged)​:

$ ./perl6-j -e 'my $foo = [42 ]; $foo[1] = $foo; say $foo.perl; say $foo.perl.EVAL'
((my @​Array_1924162593) = $[42, @​Array_1924162593])
(\Array_532302454 = [[42 Array_532302454]])

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Sep 10, 2017

@usev6 - Status changed from 'new' 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