Skip to content

Commit 8921b20

Browse files
committed
Updates typed pointer info, refs #1513
1 parent c290565 commit 8921b20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/Language/nativecall.pod6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,6 @@ say "foo is {$foo.a_string} and {$foo.an_int32}";
497497
498498
=head1 Typed Pointers
499499
500-
=comment TODO
501-
502500
You can type your C<Pointer> by passing the type as a parameter. It works with
503501
the native type but also with C<CArray> and C<CStruct> defined types. NativeCall
504502
will not implicitly allocate the memory for it even when calling C<new> on them.
@@ -556,6 +554,10 @@ for 1 ..^ $n {
556554
}
557555
=end code
558556
557+
Void pointers can also be used by declaring them C<Pointer[void]>. Please
558+
consult L<the native types documentation|/language/nativetypes#The_void_type>
559+
for more information on the subject.
560+
559561
=head1 Strings
560562
561563
=head2 Explicit memory management

0 commit comments

Comments
 (0)