From: dblack@... Date: 2006-12-24T04:04:29+09:00 Subject: Re: Help with a ruby idiom Hi -- On Sun, 24 Dec 2006, Devin Mullins wrote: > dblack@wobblini.net wrote: >> It is indeed functionally equivalent to those, though all of them >> would blow up :-) > Not all of them. > a = b unless a > works, for the same reason you described > a = a || b > working. Here, the "a =" is parsed before the "unless a" is evaluated. Whoops, right; thanks. David -- Q. What's a good holiday present for the serious Rails developer? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) aka The Ruby book for Rails developers! Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)