[Rubygrammar-grammarians] Ruby Grammar Project
MenTaLguY
mental at rydia.net
Sat Nov 26 22:39:45 EST 2005
On Sat, 2005-11-26 at 22:27 -0500, MenTaLguY wrote:
> For a bare identifier to be treated as a variable (rather than a method
> call), it's sufficient for an assignment to it to appear anywhere prior
> to that point within a method body.
Sorry, _the_ method body. Assignments in other method bodies or outside
the method body don't matter.
Needless to say, (if I remember the interview correctly) the way
implicit variable declaration happens in Ruby is near the top on matz'
list of things-he-wishes-he-would-have-done-differently.
-mental
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/rubygrammar-grammarians/attachments/20051126/3349067f/attachment.bin
More information about the Rubygrammar-grammarians
mailing list