From: "David A. Black" Date: 2004-11-12T10:16:25+09:00 Subject: Re: non-nil, etc. (was Re: true? & false?) Hi -- On Fri, 12 Nov 2004, trans. (T. Onoma) wrote: > On Thursday 11 November 2004 07:30 pm, Gavin Sinclair wrote: > | Smiley shmiley: > | > | require 'extensions/object' > | > | if a.notnil? > | ... > | elsif b.nonnil? > | ... > | end > > What's wrong with: > > if not a.nil? > ... > end It looks good to me. Also: unless a.nil? ... end although I know some people don't like the unless/else sequence that might follow on that. David -- David A. Black dblack@wobblini.net