From: dblack@... Date: 2002-09-27T07:29:38+09:00 Subject: Re: adding overload to ruby Hi -- On Fri, 27 Sep 2002, Mauricio [unknown-8bit] Fern�ndez wrote: > On Fri, Sep 27, 2002 at 06:17:23AM +0900, William Djaja Tjokroaminata wrote: > > 2) Now, all those class names (at least the built-in classes) will also be > > keywords in declaring variables: > > > > Fixnum a > > I'd prefer something really horrible so newcomers don't start coding as > if it were Java... How about: candle:~$ ruby -e 'Fixnum a' -e:1: undefined local variable or method `a' for # (NameError) candle:~$ ruby -e 'Fixnum a = 10' -e:1: undefined method `Fixnum' for # (NameError) which preserves the chance they they *will* code as if it were Ruby :-) David -- David Alan Black | Register for RubyConf 2002! home: dblack@candle.superlink.net | November 1-3 work: blackdav@shu.edu | Seattle, WA, USA Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com