On Thu, May 12, 2005 at 05:19:11AM +0800, Autrijus Tang wrote: : Sure (and done). Now that #1 is eliminated, the question is now : whether a simple scalar can be treated as a small (one-element) array : reference, much like a simple pair can be treated as a small : (one-element) hash reference. : : 1.; # evaluates to 1? : : If yes, then (1) means the same as 1. and 1.. If no, : (1) is a runtime error just like 1. -- 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. Larry