Author: allison Date: Tue Aug 19 14:10:34 2008 New Revision: 30355 Modified: trunk/docs/pdds/pdd27_multiple_dispatch.pod
Log: [pdd] Adding more details on signatures and the "find next" feature to the multi dispatch PDD. Modified: trunk/docs/pdds/pdd27_multiple_dispatch.pod ============================================================================== --- trunk/docs/pdds/pdd27_multiple_dispatch.pod (original) +++ trunk/docs/pdds/pdd27_multiple_dispatch.pod Tue Aug 19 14:10:34 2008 @@ -110,8 +110,15 @@ =item get_pmc_keyed_string Return an array of matching candidates, sorted from best matching to worst -matching, for a passed in signature. The signature passed in is a string of -space-delimited type names. +matching, for a passed in signature. The signature passed in is a simple type +string for the signature ('P' for PMC, 'I' for integer, 'N' for number, and 'S' +for string). + +=item get_iter + +Return an iterator object of matching candidates, sorted from best matching to +worst matching, for the current call arguments. + =item invoke @@ -130,6 +137,20 @@ =back +=head3 Methods + + +=item get_iter + +Return an array of matching candidates, sorted from best matching to worst +matching, for a passed in signature. If the signature passed in is an array of +PMCs, the types are extracted from the types of the array elements. If the +signature passed in is a simple type string for the signature ('P' for PMC, 'I' +for integer, 'N' for number, and 'S' for string), the types are matched as +simple types. + +=back + =head3 PIR subroutine attributes The following attributes are used when declaring a MultiSub in PIR.