Re: setting nil to zero

Robert K. [mailto:[email protected]] wrote:

#Why so complicated? Why not just
#class NilClass

def +(n) n end

#end

why can i not see the simple light? :slight_smile:

#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