Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 15, 2019 00:29
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/0bd842bd0389a2010bce1ea270334ecd to your computer and use it in GitHub Desktop.
Save Whateverable/0bd842bd0389a2010bce1ea270334ecd to your computer and use it in GitHub Desktop.
evalable6
use NativeCall; my $b = CArray[uint8].new(1, 2, 3, 4, 5); say $b[^5]; my $bb := nativecast(Buf[uint8], $b); $bb[0] = 9; say $b[^5];
(exit code 1)
(1 2 3 4 5)
Internal error: unhandled target type
in sub nativecast at /tmp/whateverable/rakudo-moar/f3dda96a8b9c546644e714a81442f7469d35cad2/share/perl6/core/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 681
in block <unit> at /tmp/yl1m5Dycrn line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment