Skip to content

Instantly share code, notes, and snippets.

@vegard
Created February 11, 2018 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vegard/78fe489276bb52d285d4098b46ee91aa to your computer and use it in GitHub Desktop.
Save vegard/78fe489276bb52d285d4098b46ee91aa to your computer and use it in GitHub Desktop.
const x: i32 = 1234;
fn get_pointer() &i32 {
return &x;
}
const x_ptr = @get_pointer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment