Skip to content

Instantly share code, notes, and snippets.

@cygx
Last active August 29, 2015 14:20
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/5dbbea302e0f536615c5 to your computer and use it in GitHub Desktop.
Save cygx/5dbbea302e0f536615c5 to your computer and use it in GitHub Desktop.
precompilation bug with NativeCall typed pointers
# https://github.com/cygx/p6-libc
$ perl6 -I. ex-struct.p6
Point.new(x => 0.6e0, y => 0.6e0)
$ perl6 -Iblib ex-struct.p6
Cannot invoke this object (REPR: Null, cs = 0)
in method parameterize at lib/NativeCall.pm:123
in method to at libc.pm6:484
in block <unit> at ex-struct.p6:8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment