Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiki: error in https://code.google.com/p/go-wiki/wiki/GoForCPPProgrammers #8596

Closed
gopherbot opened this issue Aug 26, 2014 · 3 comments
Closed

Comments

@gopherbot
Copy link
Contributor

by aurelien.ooms:

See this line --> "The operator precedence is different. As an example 7 & 3
<< 1 evaluates to 6 in Go and 4 in C++."

But 7 & (3 << 1) = (7 & 3) << 1 = 6

I didn't find a way to file an issue for the wiki.
@robpike
Copy link
Contributor

robpike commented Aug 26, 2014

Comment 1:

Status changed to Fixed.

@gopherbot
Copy link
Contributor Author

Comment 2 by aurelien.ooms:

Haha not quite
--> "4 & 3 << 1 evaluates to 0 in Go and 6 in C++"
it's 0 and 4

@adg
Copy link
Contributor

adg commented Aug 27, 2014

Comment 3:

Fixed for real.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants