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

.count and .arity NYI on multis #1961

Closed
p6rt opened this issue Jul 22, 2010 · 5 comments
Closed

.count and .arity NYI on multis #1961

p6rt opened this issue Jul 22, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 22, 2010

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

Searchable as RT76646$

@p6rt
Copy link
Author

p6rt commented Jul 22, 2010

From lewis@wall.org

rakudo​: multi s (Int $x) { ~$x }; multi s (Str $x) { $x }; say &s.arity
rakudo 31d41e​: OUTPUT«Method 'arity' not found for invocant of class
'Perl6MultiSub'␤ in main program body at line 22​:/tmp/iCLjYkQl5A␤»

.count and .arity are not implemented on multisubs. Their meaning on
multisubs should be unambiguous--.arity returning the minimum arity of all
the candidates and .count returning the maximum count of all the candidates.

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 1, 2011

From @pmichaud

Now implemented in nom, need a spectest.

Note that the spec has changed somewhat since the ticket was originally
entered -- .count/.arity on a multisub proto returns the count/arity of
the proto itself rather than looking at the multicandidates.

Pm

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

From @moritz

Now tested in S06-signature/arity.t

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

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

@p6rt p6rt closed this as completed Sep 26, 2011
@p6rt p6rt added the testneeded label Jan 5, 2020
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