From: Marnen Laibow-Koser Date: 2010-02-13T03:41:12+09:00 Subject: Re: Problem with arrays Luc Heinrich wrote: > On 12 f�vr. 2010, at 18:10, Marnen Laibow-Koser wrote: > >> You don't need the parentheses or the "== false". You probably just >> want "while !@finished". > > Even better: until @finished Thanks! I forgot about until. > >> if !f.collide_with?(c) > > Same here: unless f.collide_with?(c) I don't like unless. I find it less confusing, in most cases, to write if !. But it certainly is an option. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.