On 5/6/05, Gergely Kontra <kgergely / mcl.hu> wrote: > To the nil war: > > Then what is the reason nil.to_i and friends exists? > > Will it hide bugs? > > I'm using 1.8, there nil.to_i exists, but > a = nil > b = 2 > b+a # => nil cannot be coerced into Fixnum > > So where to use nil.to_i? b + a.to_i # I might have String, Fixnum, Float, or even nil here... -austin > ps: and how can I correctly reply to a message, if I don't get > mails, but read the mails from the archive? Either subscribe to the list, or go through the google groups interface for comp.lang.ruby -- or maybe the gmane interface for the same. -austin -- Austin Ziegler * halostatue / gmail.com * Alternate: austin / halostatue.ca