Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Negative binary shifts are indeed tested in roast, so whirl them
into specs.  This implies that :signed and :unsigned will be
useful on infix:«<+», so mention that.  (The :signed and :unsigned
adverbs are currently only in spec not in roast/implementation)
  • Loading branch information
skids committed Feb 28, 2015
1 parent db834e7 commit 1968457
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions S03-operators.pod
Expand Up @@ -870,6 +870,9 @@ C<< infix:«+<» >>, numeric shift left

$integer +< $bits

Shifts by a negative number of bits cause a corresponding right shift.
As such the C<:signed> or C<:!signed> adverbs may be applied (see below.)

=item *

C<< infix:«+>» >>, numeric shift right
Expand All @@ -879,6 +882,8 @@ C<< infix:«+>» >>, numeric shift right
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.

Shifts by a negative number of bits cause a corresponding left shift.

=item *

C<< infix:<~&> >>, buffer bitwise and
Expand Down

0 comments on commit 1968457

Please sign in to comment.