[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: sleep command in iterators (silly n00b toy question

Peña, Botp

9/6/2003 2:31:00 AM

Thomas Yager-Madden [mailto:tym@NOSPAMsyntactician.com] wrote:

> 25.times { print "."; sleep 1 }
> print "\n"
>
> But instead of printing a dot, waiting a second, and then printing
> another dot, &c. Ruby waits 25 seconds and then prints 25
> dots all at
> once.

fwiw, it works on winxp running ruby 1.8.

> Thanks
> Thomas

kind regards -botp