Ticket #2122 (closed todo: done)

Opened 3 years ago

Last modified 3 years ago

: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

0001-PDD-19-Explain-method-multi-_.patch Download (1.0 KB) - added by benabik 3 years ago.
Apply with git-apply for my addition to docs

Change History

Changed 3 years ago by benabik

Apply with git-apply for my addition to docs

Changed 3 years ago by benabik

  • status changed from new to closed
  • resolution set to done
Note: See TracTickets for help on using tickets.