Author: larry
Date: Tue Feb 27 15:56:44 2007
New Revision: 13707
Modified:
doc/trunk/design/syn/S03.pod
Log:
Modifiers on bit shifts.
Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod (original)
+++ doc/trunk/design/syn/S03.pod Tue Feb 27 15:56:44 2007
@@ -12,9 +12,9 @@
Maintainer: Larry Wall <[EMAIL PROTECTED]>
Date: 8 Mar 2004
- Last Modified: 21 Feb 2007
+ Last Modified: 27 Feb 2007
Number: 3
- Version: 101
+ Version: 102
=head1 Overview
@@ -540,6 +540,9 @@
+>
+By default, signed types do sign extension, while unsigned types do not, but
+this may be enabled or disabled with a C<:signed> or C<:!signed> adverb.
+
=item *
infix:<~&>, string bitwise and
@@ -548,16 +551,19 @@
=item *
-infix:{'~<'}, string bitwise shift left
+infix:{'~<'}, buffer bitwise shift left
~<
=item *
-infix:{'~>'}, string bitwise shift right
+infix:{'~>'}, buffer bitwise shift right
~>
+Sign extension is not done by default but may be enabled with a C<:signed>
+adverb.
+
=item *
infix:<?&>, boolean bitwise and
@@ -566,6 +572,10 @@
=back
+Any bit shift operator may be turned into a rotate operator with the
+C<:rotate> adverb. If C<:rotate> is specified, the default is
+unsigned, and you may not explicitly specify a C<:signed> adverb.
+
=head2 Additive precedence
=over