From: Christian Neukirchen Date: 2005-02-22T03:07:33+09:00 Subject: Re: destructive! operations Pit Capitain writes: > Christian Neukirchen schrieb: >> Unfortunately, that would make the loop turn endless, as: >> irb(main):021:0> puts "Doesn't work as I want" if EATING_NIL >> Doesn't work as I want > > DOH! Here's the test I wrote for the code: > > if EATING_NIL then puts("nil") else puts("not nil") end > > > It can't be done in Ruby-only, I think. > > After briefly looking at the source code, I think so too. Sorry for the noise. No problem, the idea and implementation is correct. > Regards, > Pit -- Christian Neukirchen http://chneukirchen.org