Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
cd04ec95
Commit
cd04ec95
authored
Mar 11, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bit clear: &^ and &^=
R=gri DELTA=5 (3 added, 0 deleted, 2 changed) OCL=26155 CL=26157
parent
bb02e481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
doc/go_spec.html
doc/go_spec.html
+5
-2
No files found.
doc/go_spec.html
View file @
cd04ec95
...
...
@@ -297,6 +297,7 @@ The following character sequences represent operators, delimiters, and other spe
* ^ *= ^=
<
-
>
>
= { }
/
<
<
/=
<<=
++
=
:=
,
;
%
>
> %= >>= -- ! ... . :
&
^
&
^=
</pre>
<h3>
Integer literals
</h3>
...
...
@@ -2416,7 +2417,7 @@ log_op = "||" | "&&" .
com_op = "
<
-" .
rel_op = "==" | "!=" | "
<
" | "
<
=" | ">" | ">=" .
add_op = "+" | "-" | "|" | "^" .
mul_op = "*" | "/" | "%" | "
<<
" | ">>" | "
&
" .
mul_op = "*" | "/" | "%" | "
<<
" | ">>" | "
&
"
| "
&
^"
.
unary_op = "+" | "-" | "!" | "^" | "*" | "
&
" | "
<
-" .
</pre>
...
...
@@ -2460,7 +2461,7 @@ operators, comparison operators, communication operators,
<pre
class=
"grammar"
>
Precedence Operator
6 * / %
<<
>>
&
6 * / %
<<
>>
&
&
^
5 + - | ^
4 == !=
<
<
= > >=
3
<
-
...
...
@@ -2505,6 +2506,7 @@ to strings; all other arithmetic operators apply to integers only.
&
bitwise and integers
| bitwise or integers
^ bitwise xor integers
&
^ bitwise nand integers
<
<
left
shift
integer
<<
unsigned
integer
>
> right shift integer >> unsigned integer
...
...
@@ -3021,6 +3023,7 @@ x = 1
*p = f()
a[i] = 23
k =
<-ch
i
&^=
(
1
<<
n
)
</
pre
>
<p>
...
...
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