On 12/23/23 00:21, Marcel Timmerman wrote:
(perhaps already received but I'd got an error back saying '*Delivery
has failed to these recipients or groups*' from.outl...@ifdog.com, So
here it comes again.)
Thanks Elizabeth and Todd;
You are most welcome.
I will set up my own
(perhaps already received but I'd got an error back saying '*Delivery
has failed to these recipients or groups*' from.outl...@ifdog.com, So
here it comes again.)
Thanks Elizabeth and Todd;
I will set up my own pointer routine, something like this
method make-pointer ( $type, $value )
Thanks Elizabeth and Todd;
I will set up my own pointer routine, something like this
method make-pointer ( $type, $value ) {
my $array = CArray[$type].new($value);
nativecast( Pointer[$type], $array)
}
I forgot the way to make the method type depended and how to search for
it in the docs.
On 12/20/23 11:12, Marcel Timmerman wrote:
Hi,
I would like to initialize a Pointer with some value but get an error.
For example;
my $a = Pointer[Str].new('text');
The error thrown:
Default constructor for 'NativeCall::Types::Pointer[Str]' only takes
named arguments
The way I can do it
Looking at the Pointer class code, it looks like you can either create it
without arguments, or with an integer argument. The fact that you can
parameterize the Pointer class, only indicates the type of data the pointer is
pointing at.
> On 20 Dec 2023, at 20:12, Marcel Timmerman wrote:
>
>
Hi,
I would like to initialize a Pointer with some value but get an error.
For example;
my $a = Pointer[Str].new('text');
The error thrown:
Default constructor for 'NativeCall::Types::Pointer[Str]' only takes
named arguments
The way I can do it now is by creating a CArray and then do a