Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
7539c850
Commit
7539c850
authored
Aug 01, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
language re: conversion of left operand in shift operations
DELTA=5 (5 added, 0 deleted, 0 changed) OCL=32484 CL=32617
parent
62718fb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
go_spec.html
doc/go_spec.html
+5
-0
No files found.
doc/go_spec.html
View file @
7539c850
...
...
@@ -9,6 +9,8 @@ Open issues:
Todo's:
[ ] need explicit language about the result type of operations
[ ] may want to have some examples for the types of shift operations
[ ] document illegality of package-external tuple assignments to structs
w/ private fields: P.T(1, 2) illegal since same as P.T(a: 1, b: 2) for
a T struct { a b int }.
...
...
@@ -2440,6 +2442,9 @@ The operand types in binary operations must be compatible, with the following ex
ideal float, the other is converted to ideal float
(relevant for
<code>
/
</code>
and
<code>
%
</code>
).
</li>
<li>
In shift operations, the above rules apply to the left operand of the shift as
if the shift operator and the right operand where not present.
<li>
The right operand in a shift operation must be always be of unsigned integer type
or an ideal number that can be safely converted into an unsigned integer type
(§Arithmetic operators).
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment