On 18/08/05, Zach Dennis <zdennis / mktec.com> 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/