Author: larry Date: Fri Sep 15 18:48:48 2006 New Revision: 12090 Modified: doc/trunk/design/syn/S05.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S12.pod
Log: repairing some splat damage Modified: doc/trunk/design/syn/S05.pod ============================================================================== --- doc/trunk/design/syn/S05.pod (original) +++ doc/trunk/design/syn/S05.pod Fri Sep 15 18:48:48 2006 @@ -1534,7 +1534,7 @@ Note that, as a scalar variable, C<$/> doesn't automatically flatten in list context. Use C<@()> as a shorthand for C<@($/)> to flatten the positional captures under list context. Note that a C<Match> object -is allowed to evaluate its match lazily in list context. Use C<**@()> +is allowed to evaluate its match lazily in list context. Use C<eager @()> to force an eager match. =item * Modified: doc/trunk/design/syn/S06.pod ============================================================================== --- doc/trunk/design/syn/S06.pod (original) +++ doc/trunk/design/syn/S06.pod Fri Sep 15 18:48:48 2006 @@ -2124,7 +2124,7 @@ C<Code> object by passing the C<Capture> to its C<call> method: # Transparently redirect all calls to &thermo to &other_thermo - &thermo.wrap( -> \$args { &other_thermo.call(*$args) } ); + &thermo.wrap( -> \$args { &other_thermo.call([,] =$args) } ); Outside a wrapper, C<call> implicitly calls the next-most-likely method or multi-sub; see S12 for details. @@ -2132,9 +2132,9 @@ As with any return value, you may capture the returned C<Capture> of C<call> by binding: - my \$retval := call(*$args); + my \$retval := call([,] =$args); ... # postprocessing - return *$retval; + return [,] =$retval; =head2 The C<&?ROUTINE> object Modified: doc/trunk/design/syn/S12.pod ============================================================================== --- doc/trunk/design/syn/S12.pod (original) +++ doc/trunk/design/syn/S12.pod Fri Sep 15 18:48:48 2006 @@ -1165,7 +1165,7 @@ Since the method name (but nothing else) is known at class construction time, the following C<.wag> method is autogenerated for you: - method wag ([EMAIL PROTECTED] is context(Lazy)) { $!tail.wag([EMAIL PROTECTED]) } + method wag ([EMAIL PROTECTED] is context(Lazy)) { $!tail.wag([,] @args) } You can specify multiple method names: @@ -1175,7 +1175,7 @@ has been initialized to an object of a type supporting the method, such as by: - has Tail $.tail handles 'wag' = { .new(*%_) }; + has Tail $.tail handles 'wag' = { .new([,] %_) }; Note that putting a C<Tail> type on the attribute does not necessarily mean that the method is always delegated to the C<Tail> class.