We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d41125 commit 1abe655Copy full SHA for 1abe655
doc/Language/nativecall.pod6
@@ -658,11 +658,11 @@ equivalent signature as L<a constraint on the code parameter|/type/Signature#Con
658
659
use NativeCall;
660
# void SetCallback(int (*callback)(const char *))
661
- my sub SetCallback(&callback:(Str --> int32)) is native('mylib') { * }
+ my sub SetCallback(&callback (Str --> int32)) is native('mylib') { * }
662
663
Note: the native code is responsible for memory management of values passed to
664
-Perl 6 callbacks this way. In other words, NativeCall will not free() strings passed
665
-to callbacks.
+Perl 6 callbacks this way. In other words, NativeCall will not free() strings
+passed to callbacks.
666
667
=head1 Library paths and names
668
0 commit comments