Hi,

At Sun, 19 May 2002 12:39:32 +0900,
Joel VanderWerf wrote:
> Maybe I'm paranoid, but I've been using
> 
>      if (RTEST(rb_obj_is_instance_of(MyValue, rb_cRange))) ...
> 
> just in case the return value is Qnil, because Qnil != 0. Maybe that's
> never going to happen with this particular function, but it seems like a
> good habit.

Agreed.  It's better to write ruby (interpreter/extension)
code.

-- 
Nobu Nakada