Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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))
Add Comment
Please, Sign In to add comment