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

Re: What does this line mean?

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
November 29, 2022 06:53
Subject:
Re: What does this line mean?
Message ID:
3eb0d814-1eff-3814-65b0-cff2ffc3ed03@zoho.com
On 11/25/22 19:21, ToddAndMargo via perl6-users wrote:
> Hi All,
> 
> 
> I am confused!
> 
> 
> sub blob-from-pointer(Pointer:D \ptr, Int :$elems!, Blob:U :$type = Buf) 
> is export {
> 
> What is `Pointer:D \ptr`?
> 
> Why the `\`?
> 
> 
> What is `:$elems!`?
> 
> Why the `:`?
> 
> Why the `!`?
> 
> 
> What is `Blob:U :$type = Buf`
> 
> What does `Blob:U` mean?
> 
> What does `:type` mean?
> 
> Is `$type` being assigned the type of `Buf`
> 
> 
> :'(
> 
> 
> Yours in confusion,
> -T

Hi All,

I figured all this out with some help from the
beginners chat line and a ton of research.

If anyone want to know the results, let me
know and I will fill in the answers.

-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