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

.signature.perl reports an anonymous named (yes, I know) parameter as positional in Rakudo #1333

Closed
p6rt opened this issue Sep 30, 2009 · 12 comments

Comments

@p6rt
Copy link

p6rt commented Sep 30, 2009

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

Searchable as RT69492$

@p6rt
Copy link
Author

p6rt commented Sep 30, 2009

From @masak

<masak> rakudo​: sub foo(​:$) {}; say &foo.signature.perl
<p6eval> rakudo c8181a​: OUTPUT«​:(Any $?)␤»
<moritz_> that's wrong :-)
<masak> why?
<moritz_> it's not a positional
<masak> oh, right.
* masak submits rakudobug
<Matt-W> but it should be a named optional
<Matt-W> :$?
<moritz_> right
<masak> rakudo​: sub foo(​:$a) {}; say &foo.signature.perl
<p6eval> rakudo c8181a​: OUTPUT«​:(Any :$a?)␤»
<masak> it gets that one right.

@p6rt
Copy link
Author

p6rt commented Apr 5, 2010

From @jnthn

On Wed Sep 30 06​:12​:28 2009, masak wrote​:

<masak> rakudo​: sub foo(​:$) {}; say &foo.signature.perl
<p6eval> rakudo c8181a​: OUTPUT«​:(Any $?)␤»
<moritz_> that's wrong :-)
<masak> why?
<moritz_> it's not a positional
<masak> oh, right.
* masak submits rakudobug
Now it shows up looking like a named parameter. You can also flatten a
hash with an empty string key in the arguments list to call such a sub! :-)

Given to moritz++ to see if he thinks spectesting this craziness is
worthwhile. ;-)

Jonathan

@p6rt
Copy link
Author

p6rt commented Apr 5, 2010

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

@p6rt
Copy link
Author

p6rt commented Apr 18, 2010

From @moritz

Tested in t/spec/S06-signature/introspection.t.

@p6rt
Copy link
Author

p6rt commented Apr 18, 2010

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

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

From @masak

<masak> r​: sub foo(​:$) {}; say &foo.signature.perl
<p6eval> ..rakudo 34e8d4​: OUTPUT«​:()␤»
* masak re-opens https://rt-archive.perl.org/perl6/Ticket/Display.html?id=69492

It's supposed to say something like '​:(​:$)'. Re-opening ticket.

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

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

@p6rt
Copy link
Author

p6rt commented Mar 14, 2014

From @ShimmerFairy

  <lue> r​: sub foo(​:$) {}; say &foo.signature.perl
  <camelia> rakudo-parrot 20193f, rakudo-jvm 20193f, rakudo-moar 20193f​: OUTPUT«​:(Any :($))␤»

And once again it's fixed. Your serve :) .

@p6rt
Copy link
Author

p6rt commented Jun 20, 2014

From @peschwa

Am Do 13. Mär 2014, 19​:23​:15, lue schrieb​:

<lue> r​: sub foo(​:$) {}; say &foo.signature.perl
<camelia> rakudo-parrot 20193f, rakudo-jvm 20193f, rakudo-moar 20193f​:
OUTPUT«​:(Any :($))␤»

And once again it's fixed. Your serve :) .

Narrowed down the test for this issue in roast commit a3db7d2.

@p6rt
Copy link
Author

p6rt commented Feb 1, 2015

From @usev6

The test in S06-signature/introspection.t is passing (for quite a while, I guess). I'm closing this ticket now.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Feb 1, 2015

From @usev6

The test in S06-signature/introspection.t is passing (for quite a while, I guess). I'm closing this ticket now.

@p6rt p6rt closed this as completed Feb 1, 2015
@p6rt
Copy link
Author

p6rt commented Feb 1, 2015

@usev6 - 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