From: "Brian Schröder" Date: 2005-08-19T01:23:51+09:00 Subject: Re: unless statement... why oh why? On 18/08/05, Zach Dennis wrote: > thr = Thread.new{} > # thread dies > > "HERE" if not thr or not thr.alive? # this works!! (not a) or (not b) <=> not (a and b) <=/=> not (a or b) <=> (not a) and (not b) > "HERE" unless thr or thr.alive? # doesn't work!! WHY? > "HERE" unless thr and thr.alive? # works, but why? > > I dont see why the unless/and works when the unless/or should be the one > short-circuting no? > > Thanks, > > Zach > brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/