From: Joao Pedrosa Date: 2005-05-05T01:16:11+09:00 Subject: Re: Bug or on purpose? Hi, > Additional note: 1.8.2 doesn't show this behavior. But: never trust IRB > when it comes to local variables. Did you also try that in a script or > with ruby -e '...'? dewd@heaven:~ $ ruby -e "def foo s; 'bar'; end; foo = foo('z')" -e:1: undefined method `call' for nil:NilClass (NoMethodError) This behaviour I encountered when I was trying to compile wxRuby on Windows. :-) Cheers, Joao