From: Jos Backus Date: 2002-02-19T05:10:53+09:00 Subject: Re: _The Ruby Way_: Call for errata On Tue, Feb 19, 2002 at 04:57:39AM +0900, Kent Dahl wrote: > _____ > * p52 > "Because unless is the opposite of if, the else clause > will be executed if the condition is false." > > I thought it was the opposite: > unless false then "THEN" else "ELSE" end #=> "THEN" Heh, I spotted this one. > ______ > * s140 > "The method length [...] the number of elements in an array. > Note that this is one less than the index of the last item:" > > Isn't it the opposite? > a = ["first", "second", "last" ] > a.size #=> 3 > a.index("last") #=> 2 I didn't catch this one. Hal should have over a dozen e-mails from me with corrections :-) Hopefully he has kept them because I didn't. > If these aren't errors, I hope someone can plaster the hole in my head > that is leaking. :-) > > Unfortunately, I haven't gotten much farther than this yet. I'll keep my > eyes open for other compile errors in my head as I read along. (What > I've read so far is quite excellent!) I'm on page 270 and agree that it is a great book. -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;