Ticket #2122: 0001-PDD-19-Explain-method-multi-_.patch

File 0001-PDD-19-Explain-method-multi-_.patch, 1.0 KB (added by benabik, 11 years ago)

Apply with git-apply for my addition to docs

  • docs/pdds/pdd19_pir.pod

    From 8a6e043f6b8b2fc3217f3e8a18d3acdf9c9c1270 Mon Sep 17 00:00:00 2001
    From: Brian Gernhardt <brian.gernhardt@mail.rit.edu>
    Date: Thu, 26 May 2011 11:11:45 -0400
    Subject: [PATCH] PDD 19: Explain :method :multi(_)
    
    I didn't expect :multi to need to add the type of the invocant.  So
    let's add an explanation to the first place I looked for an answer.
    ---
     docs/pdds/pdd19_pir.pod |    3 +++
     1 files changed, 3 insertions(+), 0 deletions(-)
    
    diff --git a/docs/pdds/pdd19_pir.pod b/docs/pdds/pdd19_pir.pod
    index b135bd2..a6d9b49 100644
    a b  
    434434See F<docs/pdds/pdd27_multi_dispatch.pod> for more information on the 
    435435multiple dispatch system. 
    436436 
     437When used in combination with B<:method> (below), the first type (C<type1>) 
     438refers to the type of the invocant (C<self>). 
     439 
    437440=item :immediate 
    438441 
    439442Execute this subroutine immediately after being compiled, which is analogous