We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package main import "fmt" var P = new(int) func main() { fmt.Println(*P) *P = 32 fmt.Println(*P) *P++ fmt.Println(*P) }
0 32 4
0 32 33
Note that this issue has been opened after closing #916.
The text was updated successfully, but these errors were encountered:
A simpler version of this issue:
package main func main() { p := new(int) *p = 1 *p += 5 println(*p) }
Sorry, something went wrong.
Note that this code:
package main func main() { p := new(int) *p = 1 _ = *p *p += 5 println(*p) }
works as expected. The only difference with the previous one is the addition of _ = *p.
_ = *p
No branches or pull requests
Source code
Scriggo output
gc output
Details
Note that this issue has been opened after closing #916.
The text was updated successfully, but these errors were encountered: