Author: jdlugosz Date: 2009-05-25 06:10:06 +0200 (Mon, 25 May 2009) New Revision: 26929
Modified: docs/Perl6/Spec/S03-operators.pod Log: Code to Callable, clarify "Type" under smart matching (see <http://irclog.perlgeek.de/perl6/2009-05-24#i_1171474> Modified: docs/Perl6/Spec/S03-operators.pod =================================================================== --- docs/Perl6/Spec/S03-operators.pod 2009-05-24 19:46:24 UTC (rev 26928) +++ docs/Perl6/Spec/S03-operators.pod 2009-05-25 04:10:06 UTC (rev 26929) @@ -12,8 +12,8 @@ Maintainer: Larry Wall <la...@wall.org> Date: 8 Mar 2004 - Last Modified: 17 May 2009 - Version: 165 + Last Modified: 24 May 2009 + Version: 166 =head1 Overview @@ -3060,8 +3060,8 @@ $_ X Type of Match Implied Match if (given $_) ====== ===== ===================== =================== - Any Code:($) item sub truth X($_) - Any Code:() simple closure truth X() (ignoring $_) + Any Callable:($) item sub truth X($_) + Any Callable:() simple closure truth X() (ignoring $_) Any undef undefined not .defined Any * block signature match block successfully binds to |$_ Any .foo method truth ?X i.e. ?.foo @@ -3105,7 +3105,7 @@ Any Type type membership $_.does(X) Signature Signature sig compatibility $_ is a subset of X ??? - Code Signature sig compatibility $_.signature is a subset of X ??? + Callable Signature sig compatibility $_.sig is a subset of X ??? Capture Signature parameters bindable $_ could bind to X (doesn't!) Any Signature parameters bindable |$_ could bind to X (doesn't!) @@ -3150,7 +3150,9 @@ =========== =============== List Seq Array KeySet KeyBag KeyHash Hash - Class Enum Role Type + named values created with + Class, Enum, or Role, + or generic type binding Type Subst Regex Char Cat Str Int UInt etc. Num @@ -3208,7 +3210,7 @@ $_ X Type of Match Wanted What to use on the right ====== === ==================== ======================== - Code Any item sub truth .ACCEPTS(X) or .(X) + Callable Any item sub truth .ACCEPTS(X) or .(X) Range Any in range .ACCEPTS(X) Type Any type membership .ACCEPTS(X) or .does(X) Regex Any pattern match .ACCEPTS(X)