Author: lwall Date: 2009-08-25 02:21:44 +0200 (Tue, 25 Aug 2009) New Revision: 28058
Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] disallow alphanums as quote delims [S02] document WhateverCode and HyperWhateverCode Modified: docs/Perl6/Spec/S02-bits.pod =================================================================== --- docs/Perl6/Spec/S02-bits.pod 2009-08-24 22:52:58 UTC (rev 28057) +++ docs/Perl6/Spec/S02-bits.pod 2009-08-25 00:21:44 UTC (rev 28058) @@ -13,8 +13,8 @@ Created: 10 Aug 2004 - Last Modified: 11 Aug 2009 - Version: 173 + Last Modified: 24 Aug 2009 + Version: 174 This document summarizes Apocalypse 2, which covers small-scale lexical items and typological issues. (These Synopses also contain @@ -840,7 +840,7 @@ closure binds them all to the same argument, so C<* * *> translates to C<{ $_ * $_ }>. -These closures are of type C<Code:($)>, not C<Whatever>, so that constructs can distinguish +These closures are of type C<WhateverCode>, not C<Whatever>, so that constructs can distinguish via multiple dispatch: 1,2,3 ... * @@ -864,7 +864,7 @@ does dwimmery, and in this case decides to supply a function { * + 1 }. The final element of an array is subscripted as C<@a[*-1]>, -which means that when the subscripting operation discovers a C<Code> +which means that when the subscripting operation discovers a C<WhateverCode> object for a subscript, it calls it and supplies an argument indicating the number of elements in (that dimension of) the array. See S09. @@ -872,7 +872,7 @@ It is generally understood to be a multidimension form of C<*> when that makes sense. When modified by an operator that would turn C<*> into a function of one argument, C<**> instead turns into a function -with a slurpy argument, of type C<Code:(*@)>. That is: +with a slurpy argument, of type C<HyperWhateverCode>. That is: * - 1 means -> $x { $x - 1 } ** - 1 means -> *...@x { map -> $x { $x - 1 }, @x } @@ -2893,6 +2893,7 @@ taken to mean another adverb regardless of what's in front of it. Nor may a C<#> character be used as the delimiter since it is always taken as whitespace (specifically, as a comment). +You may not use whitespace or alphanumerics for delimiters. =item *