Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #58 from niner/master

Document memory management of strings passed to callbacks
  • Loading branch information...
commit c2ff93a115017d0a05f585beacbb30b2cb390ca7 2 parents 4a29f3b + 0c8704a
@moritz moritz authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.markdown
4 README.markdown
@@ -216,6 +216,10 @@ as a constraint on the code parameter:
# void SetCallback(int (*callback)(const char *))
my sub SetCallback(&callback (Str --> int32)) is native('mylib') { * }
+Note: the native code is responsible for memory management of values passed to
+Perl 6 callbacks this way. In other words, NativeCall will not free() strings passed
+to callbacks.
## The Future
See the TODO file. In general, though, it's mostly about making arrays and structs
much more capable, providing more options for memory management and supporting

0 comments on commit c2ff93a

Please sign in to comment.
Something went wrong with that request. Please try again.