Skip to content

Instantly share code, notes, and snippets.

@cygx

cygx/deref.p6 Secret

Created December 30, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cygx/5008871f68dc2cbf7e08 to your computer and use it in GitHub Desktop.
Save cygx/5008871f68dc2cbf7e08 to your computer and use it in GitHub Desktop.
method deref-ptr-of-ptr(\ptr) {
nqp::box_i(ptr.of,
nativecast(uintptr,
nqp::box_i(Pointer[uintptr], nqp::unbox_i(ptr))));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment