Created
January 22, 2019 23:33
-
-
Save Whateverable/04bf9d9ce541d8ba47a5e78e35e90e7e to your computer and use it in GitHub Desktop.
committable6
This file contains 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
2015.12,HEAD use NativeCall; sub strlen(Str --> size_t) is native {*}; sub free(Pointer[void]) is native {*}; my Str $foo = 'ayy lmao'; explicitly-manage($foo); say strlen($foo); free(nativecast(Pointer[void], $foo)) |
This file contains 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
¦«2015.12»: | |
8 | |
Native call expected return type with CPointer, CStruct, CArray, or VMArray representation, but got a P6opaque | |
in sub nativecast at /tmp/whateverable/rakudo-moar/ec386e5ff54a6e8028e74092d1a41cfccdc531d2/share/perl6/sources/DC51BBFFA1FFE3C541526C54146D423B5AC2FBCD line 335 | |
in block <unit> at /tmp/9L9uv5KD3A line 1 | |
«exit code = 1» | |
¦«HEAD(5b231e0)»: | |
8 | |
Native call expected return type with CPointer, CStruct, CArray, or VMArray representation, but got a P6opaque (Str+{NativeCall::ExplicitlyManagedString}) | |
in sub nativecast at /tmp/whateverable/rakudo-moar/5b231e09991f13064c9e1a2d63bf294a236abdea/share/perl6/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 685 | |
in block <unit> at /tmp/9L9uv5KD3A line 1 | |
«exit code = 1» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment