Changeset 9985 for docs/Perl6/FAQ
- Timestamp:
- 04/17/06 18:39:06 (3 years ago)
- Files:
-
- 1 modified
-
docs/Perl6/FAQ/Capture.pod (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/FAQ/Capture.pod
r9984 r9985 23 23 =head2 How 24 24 25 =head3 Can I see howcaptures look like? Does \$x no longer work?25 =head3 Can I see what captures look like? Does \$x no longer work? 26 26 27 27 Prefix C<\> is now the Capture constructor. These are all equivalent: … … 80 80 =head3 What do you mean by "invocant"? 81 81 82 When you call a object's method, the C<self> inside the method is set82 When you call an object's method, the C<self> inside the method is set 83 83 to that object. These are all equivalent: 84 84 … … 130 130 131 131 Method/subroutine calls are determined by the presence of an invocant at the 132 calling site. Single/multi dispatch are determined by the pre cense of "multi"132 calling site. Single/multi dispatch are determined by the presence of "multi" 133 133 in the declaration site. The two concepts are entirely orthogonal. 134 134 … … 205 205 (Captures are immutable; their underlying data may not be.) 206 206 207 =head3 So $x = @y does not mean $x = \@y anymore. What does it mean then?207 =head3 So $x = @y does not mean $x = \@y anymore. Then, what does it mean? 208 208 209 209 It means assigning C<$x> with the object bound to C<@y> (typically an
