Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 2, 2019 13:39
Show Gist options
  • Save Whateverable/634c6c9e7d5d61410f1c6a7b7b97f4fd to your computer and use it in GitHub Desktop.
Save Whateverable/634c6c9e7d5d61410f1c6a7b7b97f4fd to your computer and use it in GitHub Desktop.
evalable6
use NativeCall; my Str $s = 'Hello'; my $sp = nativecast(Pointer, $s); say $sp;
(exit code 1)
Native call cast expected return type with CPointer, CStruct, CArray, or VMArray representation, but got a P6opaque (Str)
in sub nativecast at /tmp/whateverable/rakudo-moar/b380fd207b529ecb3e9bc3cbc9358ecf8a90dd2c/share/perl6/core/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 687
in block <unit> at /tmp/DSMveReC8r line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment