Front page | perl.perl6.users |
Postings from December 2022
When to use .new?
Thread Next
From:
ToddAndMargo via perl6-users
Date:
December 1, 2022 04:28
Subject:
When to use .new?
Message ID:
fe8c3c50-0eb1-778c-2463-7f34169e7925@zoho.com
Hi All,
Why can I get away with
my Str $x = "";
But I have to use .new here (an other places too)
my $ppSession = NativeCall::Types::Pointer.new();
Is there some rule I can follow that let me know
when I have to use .new and when I do not?
(I am getting tired of figuring it out the
hard way.)
Many thanks,
-T
Thread Next
-
When to use .new?
by ToddAndMargo via perl6-users