> Ok, this is strange to me.
>
> multi handle_event ($window, $event: $mode) {...} # two invocants
>
> Does that mean I can assume $event is a valid object of some sort?
Yep.
multi handle_event ($window, Undef $event: $mode) {...}
Then you would get a valid undef object. :)
> .stuff()
>
> is still going to default to $window, right?
Yes. $_ binds to the first invocant.
> Or is that saying that if there is no $window.stuff() it'll look for
> $event.stuff() ?
No. If there's no $window.stuff, you'll get an error.
Luke
Thread Previous
|
Thread Next