Skip Menu |
Report information
Id: 129809
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cookbook_000 [at] yahoo.co.jp <titsuki [at] cpan.org>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Thu, 6 Oct 2016 01:12:43 +0900 (JST)
Subject: [RFC] Types in NativeCall should have .ref method
To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
From: cookbook_000 [...] yahoo.co.jp
Download (untitled) / with headers
text/plain 305b
I mean something like the following example.

$ perl6 -MNativeCall -e 'my int32 $a = 10; $a.ref.say' 
NativeCall::Types::Pointer[int32]<0x414a0a0>

perl6 -MNativeCall -e 'my CArray[int32] $a .= new; $a[0] = 10; $a.ref.say'
NativeCall::Types::Pointer[NativeCall::Types::CArray[int32]]<0x3ddebc0>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org