Skip to content

Commit

Permalink
Itemize the CArray methods.
Browse files Browse the repository at this point in the history
See issue #1902
  • Loading branch information
fluca1978 committed Apr 17, 2018
1 parent 781f351 commit fadf3c9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/Language/nativecall.pod6
Expand Up @@ -283,6 +283,18 @@ offer you no protection whatsoever here - do the wrong thing, and you will get a
segfault or cause memory corruption. This isn't a shortcoming of NativeCall, it's
the way the big bad native world works. Scared? Here, have a hug. Good luck!
=head2 CArray methods
C<CArray> provides the following methods that can be used to interact with the array
from the Perl 6 point of view:
=item C<elems> provides the number of elements within the array;
=item C<AT-POS> provides a specific element at the given position (starting from zero);
=item C<list> provides the L<List> of elements within the array building it from the
native array iterator.
=head1 Structs
Thanks to representation polymorphism, it's possible to declare a normal looking
Expand Down

0 comments on commit fadf3c9

Please sign in to comment.