develooper Front page | perl.perl6.users | Postings from November 2022

Re: What is this "\t"?

Thread Previous | Thread Next
From:
Clifton Wood
Date:
November 28, 2022 03:03
Subject:
Re: What is this "\t"?
Message ID:
CADaz7G=TnvLrgYajQgETz35QpGmik4JANXcnMHv8NaKZDLhpww@mail.gmail.com
@ToddAndMargo: These are all explained in the Raku documentation. Long
story short:

"my \t" -- this is a RAW definition. You can use it to hold types, as in
this case.
".of" is a method for Parametric Roles. It generally returns a type
"??" is the trinary operator. (expr) ?? <true return> !! <false return>

If you are going to go further, please read the Raku documentation. These
are basic questions that are covered there in detail.

- Xliff

On Sun, Nov 27, 2022 at 8:42 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> Hi All,
>
> On
>
>
> https://github.com/salortiz/NativeHelpers-Blob/blob/master/lib/NativeHelpers/Blob.pm6
>
> Line 96
>
> my \t = ptr.of ~~ void ?? $type.of !! ptr.of;
>
>
> What is `\t`?
>
> What of `.of`
>
> What is `??`?
>
> What is `!!`
>
>
> Yours in confusion.
>
> -T
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About