Skip to content

Commit

Permalink
This place is probably better for definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Feb 9, 2022
1 parent 1fc1d1e commit 48b3951
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions doc/Language/nativecall.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ create an object of that class, we are creating exactly the kind of pointer
C<clock_gettime> expects. This way, data can be transferred seamlessly to and
from the native interface.
X<|Pointer>
=head1 Basic use of pointers
When the signature of your native function needs a pointer to some native type
Expand Down
1 change: 0 additions & 1 deletion doc/Language/nativetypes.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ my Pointer[void] $for-malloc = malloc( 32 );
say $for-malloc.raku;
=end code
X<|Pointer>
As the example shows, it's represented by a parametrized C<Pointer> role,
using as parameter whatever the original pointer is pointing to (in this
case, C<void>). This role represents native pointers, and can be used
Expand Down

0 comments on commit 48b3951

Please sign in to comment.