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

Strange error message when calling an optional & parameter that wasn't bound in Rakudo #2817

Closed
p6rt opened this issue Jul 4, 2012 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 4, 2012

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

Searchable as RT113990$

@p6rt
Copy link
Author

p6rt commented Jul 4, 2012

From @masak

<masak> "invoke() not implemented in class 'Callable'" -- now *that's*
a new one!
<masak> r​: sub foo(&x?) { &x() }; foo
<p6eval> ..rakudo 61a3ad​: OUTPUT«invoke() not implemented in class
'Callable' [...]
* masak submits rakudobug

I don't know what the effect of calling a Callable type object should
be, but the error as it is now is very confusing since Callable
essentially *exists* to be invoked. Might this be a Parrot-internal
error?

@p6rt
Copy link
Author

p6rt commented Apr 7, 2016

From @diakopter

it's now clear that it's Nil

13​:22 <diakopter> m​: sub foo(&x?) { &x() }; foo
13​:22 <camelia> rakudo-moar 61d231​: OUTPUT«Cannot invoke this object␤ in sub foo at /tmp/S1HXCaBFZk line 1␤ in
  block <unit> at /tmp/S1HXCaBFZk line 1␤␤»

@p6rt
Copy link
Author

p6rt commented Apr 7, 2016

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

@p6rt p6rt closed this as completed Apr 7, 2016
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant