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

Having an optional variable in the signature of a 'my' declaration makes Rakudo blow up #1006

Closed
p6rt opened this issue May 20, 2009 · 3 comments

Comments

@p6rt
Copy link

p6rt commented May 20, 2009

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

Searchable as RT65864$

@p6rt
Copy link
Author

p6rt commented May 20, 2009

From @masak

<masak> rakudo​: my (%h?)
<p6eval> rakudo 14bba5​: OUTPUT«get_pmc_keyed_str() not implemented in
class 'String' [...]
<masak> jnthn​: bug? :)
<masak> std​: my (%h?)
<p6eval> std 26892​: OUTPUT«ok 00​:02 37m␤»
<PerlJam> but what does it mean? :)
<TimToady> it means that *if* you were to bind to it, it would be optional
<jnthn> masak​: I'm not even sure where it's blowing up...
<jnthn> oh, runtime.
<jnthn> Hmm
<jnthn> masak​: It shouldn't crash like that.
* masak submits rakudobug
<jnthn> But I'm not really sure what it means... :-)
<TimToady> rakudo​: my (%h?) := ()
<p6eval> rakudo 14bba5​: ( no output )

@p6rt
Copy link
Author

p6rt commented Apr 5, 2010

From @moritz

Doesn't blow up anymore. Tested in S06-signature/named-parameters.t.

@p6rt
Copy link
Author

p6rt commented Apr 5, 2010

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

@p6rt p6rt closed this as completed Apr 5, 2010
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