# New Ticket Created by  Itsuki Toyota 
# Please include the string:  [perl #129353]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129353 >


See the following results.

$ perl6 -MNativeCall -e 'class A is repr("CStruct") { has $.a; }'
===SORRY!=== Error while compiling -e
CStruct representation only handles int, num, CArray, CPointer, CStruct, 
CPPStruct and CUnion
at -e:1

It looks wrong for me, because the Perl 6 official document says:


Don't use Perl 6 native types like int or num, as they don't have to correspond 
to the local C equivalent (e.g., Perl 6's int can be 8 bytes but C's int is 
only 4 bytes).

(From https://docs.perl6.org/language/nativecall#Passing_and_Returning_Values)


$ perl6 --version
This is Rakudo version 2016.08.1-202-g78393dd built on MoarVM version 
2016.08-47-g2eedba8
implementing Perl 6.c.

Reply via email to