jastrachan | 29 Mar 17:10 2004
Picon

Re: Wow it's retro!

On 29 Mar 2004, at 16:00, Neil Ellis (Mangala Solutions) wrote:
> Hi folks
>
> What do you feel the result of the following should be?
>
> a= ["hello","world"]
> println a[1.0]

Right now I think lists only support integer based subscript operators. 
One day we could support auto-type coercion maybe - until then you 
could try

println a[(int) 1.0]

or

println a[1.0.intValue()]

James
-------
http://radio.weblogs.com/0112098/

Gmane