Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 30, 2019 14:50
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/2c439cbcbf23df58f66bdded9bc8d17b to your computer and use it in GitHub Desktop.
Save Whateverable/2c439cbcbf23df58f66bdded9bc8d17b to your computer and use it in GitHub Desktop.
evalable6
use NativeCall; my $initial = CArray[uint8].new(1, 2, 3, 4); my $casted = nativecast(CArray[uint16], $initial); $casted.say; $initial.push($_) for 10..14; $casted.say
(exit code 1)
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Failed to create directory '/home/bisectable/.perl6/short' with mode '0o777': Failed to mkdir: Read-only file system
in any statement_control at /tmp/whateverable/rakudo-moar/adba017f794107d938d644883609b0a5cfa52b8e/bin/../share/nqp/lib/Perl6/Grammar.moarvm line 1
NativeCall::Types::CArray[uint16].new
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Failed to create directory '/home/bisectable/.perl6/short' with mode '0o777': Failed to mkdir: Read-only file system
in any statement_control at /tmp/whateverable/rakudo-moar/adba017f794107d938d644883609b0a5cfa52b8e/bin/../share/nqp/lib/Perl6/Grammar.moarvm line 1
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Failed to create directory '/home/bisectable/.perl6/short' with mode '0o777': Failed to mkdir: Read-only file system
in any statement_control at /tmp/whateverable/rakudo-moar/adba017f794107d938d644883609b0a5cfa52b8e/bin/../share/nqp/lib/Perl6/Grammar.moarvm line 1
Cannot resolve caller push(NativeCall::Types::CArray[uint8]:D: Int:D); none of these signatures match:
(Any:U \SELF: |values is raw)
in block <unit> at /tmp/hofF1eOMkt line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment