Revision 28665

Date:
2009/10/08 21:04:06
Author:
jnthn
Revision Log:
[spec] Add missing invocant and multi_invocant traits from signature introspection interface.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • docs/Perl6/Spec/S06-routines.pod

     
    1931 1931 return a C<List> of C<Parameter> objects, which have the following
    1932 1932 readonly properties:
    1933 1933
    1934 name The name of the lexical variable to bind to, if any
    1935 type The main type (the one multi-dispatch sorts by)
    1936 constraints Any further type constraints
    1937 readonly True if parameter has C<is readonly> trait
    1938 rw True if parameter has C<is rw> trait
    1939 copy True if parameter has C<is copy> trait
    1940 ref True if parameter has C<is ref> trait
    1941 named True if the parameter is to be passed named
    1942 named_names List of names a named parameter can be passed as
    1943 slurpy True if the parameter is slurpy
    1944 optional True if the parameter is optional
    1945 default A closure returning the default value
    1946 signature A nested signature to bind the argument against
    1934 name The name of the lexical variable to bind to, if any
    1935 type The main type (the one multi-dispatch sorts by)
    1936 constraints Any further type constraints
    1937 readonly True if the parameter has C<is readonly> trait
    1938 rw True if the parameter has C<is rw> trait
    1939 copy True if the parameter has C<is copy> trait
    1940 ref True if the parameter has C<is ref> trait
    1941 named True if the parameter is to be passed named
    1942 named_names List of names a named parameter can be passed as
    1943 slurpy True if the parameter is slurpy
    1944 optional True if the parameter is optional
    1945 default A closure returning the default value
    1946 invocant True if the parameter is a method invocant
    1947 multi_invocant True if the parameter is a multi invocant
    1948 signature A nested signature to bind the argument against
    1947 1949
    1948 1950 Note that C<constraints> will be something that can be smart-matched
    1949 1951 against if it is defined; if there are many constraints it may be a