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

What does this line mean?

Thread Next
From:
ToddAndMargo via perl6-users
Date:
November 26, 2022 03:21
Subject:
What does this line mean?
Message ID:
4639b104-f009-5a7e-aa97-993b9f7eab0f@zoho.com
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

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