Ticket #2122 (closed todo: done)
:method and :multi
Reported by: | benabik | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | docs | Version: | 3.4.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | new | Platform: |
Description
When working my way through PAST::Compiler, I found a lot of code of this format:
=item as_past(TYPE) .sub 'as_past' :method :multi(_, TYPE) .param pmc node .param options :slurpy :named
PDD 19 (PIR) mentions :multi, and directs the reader to PDD 27 (Multiple Dispatch) which only mentions :multi in passing.
Consensus on #parrot at the time (whiteknight and tcurtis) was that the first argument to :multi here was the method invocant. This is unexpected enough to deserve a mention in the docs.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.