Navigation Menu

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

Internal Parrot error when introspecting the signature of an &assuming'd code block in Rakudo #2093

Closed
p6rt opened this issue Aug 30, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Aug 30, 2010

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

Searchable as RT77520$

@p6rt
Copy link
Author

p6rt commented Aug 30, 2010

From @masak

<TimToady> rakudo​: say { $^x }.assuming(1).signature
<p6eval> rakudo 6ccdcd​: OUTPUT«get_attr_str() not implemented in class
'Sub' [...]
<moritz_> rakudo​: say { $^x }.assuming(1).signature.perl
<p6eval> rakudo 6ccdcd​: OUTPUT«get_attr_str() not implemented in class
'Sub' [...]
* masak submits a rakudobug for the get_attr_str() error
<masak> rakudo​: say (-> { "!" }).signature.perl
<p6eval> rakudo 6ccdcd​: OUTPUT«​:()␤»

@p6rt
Copy link
Author

p6rt commented Jan 11, 2012

From @coke

On Mon Aug 30 08​:22​:27 2010, masak wrote​:

<TimToady> rakudo​: say { $^x }.assuming(1).signature
<p6eval> rakudo 6ccdcd​: OUTPUT«get_attr_str() not implemented in class
'Sub' [...]
<moritz_> rakudo​: say { $^x }.assuming(1).signature.perl
<p6eval> rakudo 6ccdcd​: OUTPUT«get_attr_str() not implemented in class
'Sub' [...]
* masak submits a rakudobug for the get_attr_str() error
<masak> rakudo​: say (-> { "!" }).signature.perl
<p6eval> rakudo 6ccdcd​: OUTPUT«​:()␤»

New failure​:

20​:22 < [Coke]> rakudo​: say { $^x }.assuming(1).signature
20​:22 <+p6eval> rakudo 38165a​: OUTPUT«Method 'assuming' not found for invocant
  of class 'Block'␤ in block <anon> at /tmp/sGW5kK1mNs​:1␤ in
  <anon> at /tmp/sGW5kK1mNs​:1␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 11, 2012

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

@p6rt
Copy link
Author

p6rt commented Feb 8, 2015

From @Mouq

The latest error is an issue of .assuming not being defined for blocks; I'm not sure if that's spec or not.

On the other hand, this doesn't die​:

22​:20 <Mouq> p6​: say sub { $^x }.assuming(1).signature.perl
22​:20 <camelia> rakudo-{parrot,moar} 34669d​: OUTPUT«​:(Any |direct)␤»

On Tue Jan 10 17​:22​:51 2012, coke wrote​:

On Mon Aug 30 08​:22​:27 2010, masak wrote​:

<TimToady> rakudo​: say { $^x }.assuming(1).signature
<p6eval> rakudo 6ccdcd​: OUTPUT«get_attr_str() not implemented in
class
'Sub' [...]
<moritz_> rakudo​: say { $^x }.assuming(1).signature.perl
<p6eval> rakudo 6ccdcd​: OUTPUT«get_attr_str() not implemented in
class
'Sub' [...]
* masak submits a rakudobug for the get_attr_str() error
<masak> rakudo​: say (-> { "!" }).signature.perl
<p6eval> rakudo 6ccdcd​: OUTPUT«​:()␤»

New failure​:

20​:22 < [Coke]> rakudo​: say { $^x }.assuming(1).signature
20​:22 <+p6eval> rakudo 38165a​: OUTPUT«Method 'assuming' not found for
invocant
of class 'Block'␤ in block <anon> at
/tmp/sGW5kK1mNs​:1␤ in
<anon> at /tmp/sGW5kK1mNs​:1␤»

@p6rt
Copy link
Author

p6rt commented May 12, 2015

From @jdv

Added fudged tests in S06-currying/assuming-and-mmd.t
and created RT #​125155 for newly found issue.

@p6rt p6rt closed this as completed May 12, 2015
@p6rt
Copy link
Author

p6rt commented May 12, 2015

@jdv - Status changed from 'open' 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