Larry Wall wrote:
> : If yes, then (1)[0] means the same as 1.[0] and 1.[0][0][0].  If no,
> : (1)[0] is a runtime error just like 1.[0] -- i.e. unable to find the
> : matching .[] multisub under Int or its superclasses.
> 
> Maybe we should just let someone poke a Subscriptable role into some
> class or other to determine the behavior if they care.
Why is this a role, rather then just implementing postcircumfix:«[
]»(Whatever $self: Int $index) ?  (I'd hope the error message is a bit
more newbie-friendly, but that's the only special-casing I see it
needing...)

        -=- James Mastros

Reply via email to