From: Zach Dennis Date: 2005-08-19T01:18:03+09:00 Subject: Re: unless statement... why oh why? Zach Dennis wrote: > thr = Thread.new{} > # thread dies > > "HERE" if not thr or not thr.alive? # this works!! > "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? ignore the "short-circuting" comment in reference to the or statement. Zach