Ara Howard wrote:
> On Jul 25, 2008, at 8:58 AM, Maciej Tomaka wrote:
> 
>>
> it's not a syntax error, it's the same as this
> 
> cfp:~ > ruby -e'  p(  ( array = [1,2] )[ index = [2,3] ]  )  '
> 
> 
> which is the same as
> 
> cfp:~ > ruby -e'  array = [1,2];  index = [2,3];  p array[*index]'
> []
> 
> 
> [1, 2] [2, 3]  is the array '[1,2]' indexed by '2,3'
> 
> 
> a @ http://codeforpeople.com/

I undestand what is going on here.

It just might be tricky to figure what's wrong in code with such typo.


-- 
Posted via http://www.ruby-forum.com/.