------extPart_001_0000_01C287DB.C5160F20
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Try 103.times; see what you get. The last number is not a sum.


----- Original Message -----
From: Bob X
Sent: Saturday, November 09, 2002 9:43 AM
To: ruby-talk / ruby-lang.org
Subject: Re: Lighting Rod

"Kirk Haines" <khaines / enigo.com> wrote in message
news:48674.148.78.249.10.1036859159.squirrel / enigo.com...
> Eric Armstrong said:
> And this is certainly inconsistent with what is stated in the Pickaxe
book:
>
> "Iterates block int times, passing in values from zero to int - 1"
>
Isn't that exactly what it is doing?

irb(main):001:0> 3.times {|d| puts d}
0   <--- value starting at zero
1
2   <--- to int(3)-1 which would 2
3   <--- this is the return value (0,1,2  =  3)

Maybe I am mistaking what you are saying.

BobGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

------extPart_001_0000_01C287DB.C5160F20
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>Try 103.times;ee what you get. The last number is not a sum.</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIVtyle="BACKGROUND: #e4e4e4; FONT: 10pt Arial; COLOR: black"><B>From:</B> Bob X</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B> Saturday, November 09, 2002 9:43 AM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B> ruby-talk / ruby-lang.org</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B> Re: Lighting Rod</DIV> <DIV>&nbsp;</DIV>"Kirk Haines" &lt;khaines / enigo.com&gt; wrote in message<BR>news:48674.148.78.249.10.1036859159.squirrel / enigo.com...<BR>&gt; Eric Armstrong said:<BR>&gt; And this is certainly inconsistent with what is stated in the Pickaxe<BR>book:<BR>&gt;<BR>&gt; "Iterates block int times, passing in values from zero to int - 1"<BR>&gt;<BR>Isn't that exactly what it is doing?<BR><BR>irb(main):001:0&gt; 3.times {|d| puts d}<BR>0&nbsp;&nbsp; &lt;--- value starting at zero<BR>1<BR>2&nbsp;&nbsp; &lt;--- to int(3)-1 which would 2<BR>3&nbsp;&nbsp; &lt;--- this is the return value (0,1,2&nbsp; =&nbsp; 3)<BR><BR>Maybe I am mistaking what you are saying.<BR><BR>Bob<BR></BLOCKQUOTE></BODY></HTML><brlear=all><hr>Get more from the Web.  FREE MSN Explorer download : <a href='http://explorer.msn.com'>http://explorer.msn.com</a><br></p>

------extPart_001_0000_01C287DB.C5160F20--