From: jweirich@... Date: 2000-12-23T01:09:44+09:00 Subject: [ruby-talk:7955] Re: defined? problem? >>>>> "Dave" == Dave Thomas writes: Dave> Let's play Ruby during the parsing stage (remember, we're Dave> not executing code at this point) [... good explanation elided ...] Dave> For what it's worth, I agree that it's an ugly situation, Dave> but wihout adding declarations, or adding required Dave> parentheses to every method call, I'm not sure how to get Dave> around it (apart possibly from getting rid of local Dave> variables and making them all attribute methods of the Dave> current binding). Perhaps we need to view "m = " as a declaration. Therefore if m then m = 123 end the first use of "m" preceeds its "declaration". In ... m = 123 if m the test of "m" follows the declaration. -- -- Jim Weirich jweirich@one.net http://w3.one.net/~jweirich --------------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)