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
Multiple dispatch mechanism apparently does not descend into inner signatures #1933
Comments
From @cognominal$ cat mmd.pm6 in main program body at line 3:mmd.pm6 This makes impossible shape based pattern matching. -- |
From @moritzAm 13.07.2010 02:13, schrieb Stephane Payrard (via RT):
This is expected behaviour. Both signatures require at least one If you mean to also allow no arguments at all, change your first multi to: multi sub a([]?) { say "[]" } |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'rejected' |
From @cognominalSorry. My example was wrong. Here another one. C<a([])> executes as cat mmd5.pm6 in main program body at line 5:mmd5.pm6 |
@moritz - Status changed from 'rejected' to 'open' |
From @cokeOn Wed Jul 14 15:42:09 2010, cognominal wrote:
This works now: $ cat foo Closable with tests. -- |
From @moritzTurns out that rakudo's answer is still wrong; it always calls the (@a) 22:44 < moritz> perl6: multi sub a(@a) { say 1 ~ @a.perl }; multi sub |
From @moritzOh, and tests can now be found in S06-multi/unpackability.t |
From @jnthnOn Fri Oct 21 19:24:38 2011, coke wrote:
This wasn't the right answer, but we get it now: 2[] And moritz++ wrote tests, with I've now untodo'd, so resolving. Merci, /jnthn |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76486 (status was 'resolved')
Searchable as RT76486$
The text was updated successfully, but these errors were encountered: