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

What does this line mean?

Thread Next
ToddAndMargo via perl6-users
November 26, 2022 03:21
What does this line mean?
Message ID:
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,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About