Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 2, 2019 13:40
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 Whateverable/039d7b5b2963a245efd80819087521fd to your computer and use it in GitHub Desktop.
Save Whateverable/039d7b5b2963a245efd80819087521fd 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/WrZadedRaL line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment