[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Change of behaviour for sleep(0) in 1.9

Yukihiro Matsumoto

4/1/2009 3:17:00 AM

Hi,

In message "Re: Change of behaviour for sleep(0) in 1.9"
on Wed, 1 Apr 2009 00:02:20 +0900, "Sean O'Halpin" <sean.ohalpin@gmail.com> writes:

|Perhaps differing interpretations of this ambiguous documentation from ri?
|"Zero arguments causes sleep to sleep forever."

"Zero arguments" means "sleep", not "sleep(0)". Disambiguation welcome.

matz.

1 Answer

Rob Biedenharn

4/1/2009 4:03:00 AM

0

On Mar 31, 2009, at 11:17 PM, Yukihiro Matsumoto wrote:

> Hi,
>
> In message "Re: Change of behaviour for sleep(0) in 1.9"
> on Wed, 1 Apr 2009 00:02:20 +0900, "Sean O'Halpin" <sean.ohalpin@gmail.com
> > writes:
>
> |Perhaps differing interpretations of this ambiguous documentation
> from ri?
> |"Zero arguments causes sleep to sleep forever."
>
> "Zero arguments" means "sleep", not "sleep(0)". Disambiguation
> welcome.
>
> matz.


"Called without an argument, sleep() will sleep forever."

The fastri output colors the first "sleep" as a Ruby item and leaves
the second "sleep" as a Human item. It also doesn't use the empty
parentheses, but they certainly help in email.

-Rob

Rob Biedenharn http://agileconsult...
Rob@AgileConsultingLLC.com