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

Null PMC access in find_method() while accessing bound return value from gather/take #1082

Closed
p6rt opened this issue Jun 21, 2009 · 9 comments

Comments

@p6rt
Copy link

p6rt commented Jun 21, 2009

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

Searchable as RT66820$

@p6rt
Copy link
Author

p6rt commented Jun 21, 2009

From @moritz

$ perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } }; say
@​a.perl'
Null PMC access in find_method()
in Main (<unknown>​:1)

I don't know if you need laziness to get that working...

Moritz

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

On Sun Jun 21 11​:24​:57 2009, moritz wrote​:

$ perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } }; say
@​a.perl'
Null PMC access in find_method()
in Main (<unknown>​:1)

I don't know if you need laziness to get that working...

Moritz

21​:43 < [Coke]> rakudo​: my @​a := gather { for 1..3 { take $_; say @​a.perl } };
  say @​a.perl;
21​:43 <+p6eval> rakudo 7f5c22​: OUTPUT«Cannot resume dead coroutine.␤ in
  'Any​::join' at line 1␤ in 'List​::perl' at line
  2557​:CORE.setting␤ in <anon> at line 22​:/tmp/36DxD8nLx7␤ in
  <anon> at line 1␤ in 'Any​::join' at line 1␤ in 'List​::perl'
  at line 2557​:CORE.setting␤ in main program body at line
21​:43 <+p6eval> ..22​:/tmp/36DxD8nLx7…

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @coke

On Sun Jun 21 11​:24​:57 2009, moritz wrote​:

$ perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } };
say
@​a.perl'
Null PMC access in find_method()
in Main (<unknown>​:1)

I don't know if you need laziness to get that working...

Moritz

This now says​:

$ ./perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } }; say
@​a.perl'
().list
splice() not implemented in class 'Mu'
  in method reify at src/gen/CORE.setting​:3652
  in method gimme at src/gen/CORE.setting​:3989
  in method perl at src/gen/CORE.setting​:4168

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 31, 2015

From @usev6

skids++ added a test (fudged 'skip') to S04-statements/gather.t with commit Raku/roast@3a2c7f8962

@p6rt
Copy link
Author

p6rt commented Jun 15, 2015

From @labster

Behavior has changed again, and subtle variants produce different errors​:

brent% perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } }; say @​a.perl'
()
()
()
This type does not support positional operations
  in block <unit> at -e​:1

brent% perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } }; say @​a'
(1,)
This type does not support positional operations
  in block <unit> at -e​:1

brent% perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } };'
()
()
()
Unhandled exception​: This type does not support positional operations
  at src/gen/m-CORE.setting​:10009 (/Users/brent/code/rakudo/install/share/perl6/runtime/./CORE.setting.moarvm​::124)
from src/gen/m-CORE.setting​:9999 (/Users/brent/code/rakudo/install/share/perl6/runtime/./CORE.setting.moarvm​::229)
from src/gen/m-CORE.setting​:9974 (/Users/brent/code/rakudo/install/share/perl6/runtime/./CORE.setting.moarvm​:reify​:58)
from src/gen/m-CORE.setting​:10503 (/Users/brent/code/rakudo/install/share/perl6/runtime/./CORE.setting.moarvm​:gimme​:4294967295)
from src/gen/m-CORE.setting​:11060 (/Users/brent/code/rakudo/install/share/perl6/runtime/./CORE.setting.moarvm​:sink​:44)
from src/gen/m-main.nqp​:41 (/Users/brent/code/rakudo/install/share/perl6/runtime/perl6.moarvm​:MAIN​:40)
from src/gen/m-main.nqp​:35 (/Users/brent/code/rakudo/install/share/perl6/runtime/perl6.moarvm​:<mainline>​:197)
from <unknown>​:1 (/Users/brent/code/rakudo/install/share/perl6/runtime/perl6.moarvm​:<main>​:8)
from <unknown>​:1 (/Users/brent/code/rakudo/install/share/perl6/runtime/perl6.moarvm​:<entry>​:9)

@p6rt
Copy link
Author

p6rt commented Mar 12, 2016

From @moritz

On Sun Jun 21 11​:24​:57 2009, moritz wrote​:

$ perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } }; say
@​a.perl'
Null PMC access in find_method()
in Main (<unknown>​:1)

Current behavior​:

Type check failed in binding; expected Positional but got Seq (?)

If I change it to 'my \a = gather { ... }'

I get

$ ./perl6 -e 'my \a = gather { for 1..3 { take $_; say a.perl } }; say
a.perl'
Seq.new-consumed()
Seq.new-consumed()
Seq.new-consumed()
(1, 2, 3).Seq

Which, IMHO, is sane enough to make this ticket go away.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Mar 12, 2016

From @moritz

On Sun Jun 21 11​:24​:57 2009, moritz wrote​:

$ perl6 -e 'my @​a := gather { for 1..3 { take $_; say @​a.perl } }; say
@​a.perl'
Null PMC access in find_method()
in Main (<unknown>​:1)

Current behavior​:

Type check failed in binding; expected Positional but got Seq (?)

If I change it to 'my \a = gather { ... }'

I get

$ ./perl6 -e 'my \a = gather { for 1..3 { take $_; say a.perl } }; say
a.perl'
Seq.new-consumed()
Seq.new-consumed()
Seq.new-consumed()
(1, 2, 3).Seq

Which, IMHO, is sane enough to make this ticket go away.

@p6rt p6rt closed this as completed Mar 12, 2016
@p6rt
Copy link
Author

p6rt commented Mar 12, 2016

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

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

No branches or pull requests

1 participant