Changeset 23242
- Timestamp:
- 02/02/06 07:26:32 (3 years ago)
- Files:
-
- 1 modified
-
doc/trunk/design/syn/S03.pod (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/trunk/design/syn/S03.pod
r23237 r23242 13 13 Maintainer: Larry Wall <larry@wall.org> 14 14 Date: 8 Mar 2004 15 Last Modified: 25 Jan200615 Last Modified: 1 Feb 2006 16 16 Number: 3 17 Version: 1 117 Version: 12 18 18 19 19 =head1 Operator renaming … … 104 104 =item * C<^^> is the high-precedence version of C<xor>. 105 105 106 =item * C<=~> becomes the "smart match" operator C<~~>, with a whole new 107 set of semantics. Anywhere you used C<=~> before you now use C<~~>, but 108 C<~~> is much more general now. See L<Synopsis 4> for details. 106 =item * C<=~> becomes the "smart match" operator C<~~>, with a whole new set 107 of semantics. Anywhere you used C<=~> before you now use C<~~>, but C<~~> is 108 much more general now. See L<Synopsis 4> for details. (To catch "brainos", 109 the Perl 6 parser defines an C<< infix:<=~> >> macro which always fails at 110 compile time with a message directing the user either to use C<~~> instead, 111 or to put a space between if they really wanted to assign a stringified value.) 109 112 110 113 =item * Unary C<.> calls its single argument (which must be a method, or an … … 137 140 variants C<.*>, C<.?>, and C<.+> to control how multiple parent methods 138 141 of the same name are handled. The C<.=> operator does inplace modification 139 of the object on the left. 142 of the object on the left. The C<.^> operator calls a class metamethod. 140 143 141 144 =item * Unary C<=> reads lines from a filehandle or filename, or in general
