Changeset 9964 for docs/Perl6/FAQ
- Timestamp:
- 04/16/06 08:14:04 (3 years ago)
- Files:
-
- 1 modified
-
docs/Perl6/FAQ/Capture.pod (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/FAQ/Capture.pod
r9963 r9964 207 207 The C<$args> above becomes a Capture object. 208 208 209 =head3 What about delegating a method? 210 211 [hw; there's probably a golfier way] 212 Perl has a few other provisions for this (e.g., WRAP), but if you want 213 more control over invocation, you need to pass through the Capture but 214 replace the invocant: 215 216 method front_meth (\$args) { $:real_obj.back_meth( ??? ) } 217 218 # [ does $obj.meth($args) ignore a prebound invocant? ] 219 209 220 =head3 How is @x = (1, 2, 3) different from @y := (1, 2, 3) ? 210 221
