From: "Peña, Botp" Date: 2006-02-23T20:24:31+09:00 Subject: Re: setting nil to zero Robert Klemme [mailto:bob.news@gmx.net] wrote: #Why so complicated? Why not just #class NilClass # def +(n) n end #end why can i not see the simple light? :-) #Note, I recommend to use the veriant with 0 as default value for Hash #lookups because that avoids tampering with standard classes. thanks for the advice, Robert. kind regards -botp #Cheers # # robert # # #