On 11/30/05, Ryan Davis <[EMAIL PROTECTED]> wrote:
>
> On Nov 29, 2005, at 1:23 PM, Sean O'Halpin wrote:
>
> > It gets worse ;)
>
> no, it doesn't.
>
> > There is also the case where [] can be a synonym for Proc#call, e.g.
>
> at this point, it is not a synonym, it is just a message.
>
> > foo = proc {|x| x*x }
>
> foo is just an lvar here
>
> > foo [2] #=> 4
>
> [2] is just a call:
>
> [:call, [:lvar, :foo], :[], [:array, [:lit, 2]]]
>

I stand corrected - apologies for the FUD.

Sean

_______________________________________________
Rubygrammar-grammarians mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians

Reply via email to