Skip to content

Instantly share code, notes, and snippets.

@roccogalluzzo
Created November 4, 2009 13:27
Show Gist options
  • Save roccogalluzzo/226039 to your computer and use it in GitHub Desktop.
Save roccogalluzzo/226039 to your computer and use it in GitHub Desktop.
i := 42 // i is an int
ptr : Int*
ptr = i& // ptr is now a pointer to i
ptr@ = 24 // the value of ptr is set to 24
printf("i is now %d\n", i) // hint: i = 24 now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment