From: ts Date: 2005-02-19T00:31:03+09:00 Subject: Re: pulling my hair out, why won't Kernel.sleep(0) sleep? >>>>> "D" == Daniel Berger writes: D> I'm confused - what conversion is it trying to do? I thought these two D> were equivalent: D> if(NIL_P(rbNum)) D> if(Qnil == rbNum) if you want to write the same with rb_scan_args(), you must write if (rb_scan_args(argc, argv, "01", &rbNum)) { rb_thread_wait_for(rb_time_interval(rbNum)); } else { rb_thread_sleep_forever(); } and you see that the ruby version is faster :-) Guy Decoux