On Sat, Sep 23, 2017 at 3:31 PM, Brandon Allbery <[email protected]>
wrote:

> On Sat, Sep 23, 2017 at 2:09 AM, ToddAndMargo <[email protected]>
> wrote:
>
>>       method write(IO::Handle:D: Blob:D $buf --> True)
>>
>
> The key here is the colon *after* `IO::Handle:D`: that marks the Handle as
> an invocant, i.e. this is a method to be applied to an object. (The fact
> that it has a `type smiley`, i.e. another colon before that, doesn't help
> with deciphering the signature....)
>

I should also mention that that colon also shows how you can call write as
a sub: use a colon instead of a comma after the Handle.

    write($myHandle: whatever);

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to