Re: pointer confusion

2022-12-06 Thread Ralph Mellor
On Tue, Dec 6, 2022 at 11:55 PM ToddAndMargo via perl6-users wrote: > > > Oh, I figured out the "*ppX" double pointer. > "Pointer[Pointer]". Ironically I wrote that in a comment on your SO question before any other comments or the answers were written. But it was just a wild guess. I don't kn

Re: pointer confusion

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 15:40, ToddAndMargo via perl6-users wrote: On 12/5/22 16:35, Ralph Mellor wrote: On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users wrote: use NativeCall; my Pointer $foo .= new: 42; say $foo;   # NativeCall::Types::Pointer<0x2a> print $foo; # NativeCall::Types::Pointer<

Re: pointer confusion

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/5/22 16:35, Ralph Mellor wrote: On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users wrote: use NativeCall; my Pointer $foo .= new: 42; say $foo; # NativeCall::Types::Pointer<0x2a> print $foo; # NativeCall::Types::Pointer<5895604297984> `say` concatenates the `.gist`s

Re: pointer confusion

2022-12-05 Thread Ralph Mellor
On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users wrote: > > > use NativeCall; > > my Pointer $foo .= new: 42; > > say $foo; # NativeCall::Types::Pointer<0x2a> > > print $foo; # NativeCall::Types::Pointer<5895604297984> `say` concatenates the `.gist`s of each of its arguments.

Re: pointer confusion

2022-12-05 Thread ToddAndMargo via perl6-users
On 12/5/22 09:25, Ralph Mellor wrote: On Sat, Dec 3, 2022 at 11:44 AM ToddAndMargo via perl6-users wrote: I am confused I think the following is a golf of your confusion: ``` use NativeCall; my Pointer $foo .= new: 42; say $foo; # NativeCall::Types::Pointer<0x2a> print $foo; # NativeCall::

Re: pointer confusion

2022-12-05 Thread Ralph Mellor
On Sat, Dec 3, 2022 at 11:44 AM ToddAndMargo via perl6-users wrote: > > I am confused I think the following is a golf of your confusion: ``` use NativeCall; my Pointer $foo .= new: 42; say $foo; # NativeCall::Types::Pointer<0x2a> print $foo; # NativeCall::Types::Pointer<5895604297984> ``` I can