Created
April 19, 2019 09:16
evalable6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use NativeCall; my $b = Buf.allocate(10, 1, 2, 3, 4, 5); say $b.WHERE; my $c = nativecast(Pointer, $b); my $d = nativecast(CArray[uint8], $c); $d[$_].say for ^10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(exit code 1) | |
Cannot resolve caller allocate(Buf:U: Int:D, Int:D, Int:D, Int:D, Int:D, Int:D); none of these signatures match: | |
(Blob:U: Int:D $elements, *%_) | |
(Blob:U: Int:D $elements, int $value, *%_) | |
(Blob:U: Int:D $elements, Int:D \value, *%_) | |
(Blob:U: Int:D $elements, Mu:D $got, *%_) | |
(Blob:U: Int:D $elements, int @values, *%_) | |
(Blob:U: Int:D $elements, Blob:D $blob, *%_) | |
(Blob:U: Int:D $elements, @values, *%_) | |
in block <unit> at /tmp/xhgDX7ha38 line 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment