Skip to content

Instantly share code, notes, and snippets.

@retupmoca
Created March 24, 2014 16:45
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 retupmoca/9744166 to your computer and use it in GitHub Desktop.
Save retupmoca/9744166 to your computer and use it in GitHub Desktop.
This is what makes Compress::Zlib::Raw die on moarvm
module foo;
use NativeCall;
my CArray[int8] $x;
> perl6 -I. -e 'use foo; use NativeCall; my $x = CArray[int].new; say 1;'
1
> perl6 --target=mbc --output=foo.moarvm foo.pm6
> perl6 -I. -e 'use foo; use NativeCall; my $x = CArray[int].new; say 1;'
===SORRY!===
None of the parametric role variants for 'IntTypedCArray' matched the arguments supplied.
Cannot call ''; none of these signatures match:
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment