On Sat, Sep 23, 2017 at 3:31 PM, Brandon Allbery <allber...@gmail.com>
wrote:

> On Sat, Sep 23, 2017 at 2:09 AM, ToddAndMargo <toddandma...@zoho.com>
> 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
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to