From: Hal Fulton Date: 2005-08-19T08:56:37+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? I don't think it's a matter of short-circuiting, but a matter of DeMorgan's Theorem... Hal