From: Dan Sugalski Date: 2003-04-03T03:38:55+09:00 Subject: Re: Checking for valid Ruby objects? At 3:32 AM +0900 4/3/03, Lyle Johnson wrote: >If I have a void pointer in C extension code, is there any way to >tell if it is a valid Ruby object (versus a pointer to some other >data), similar to what's done in the (private) is_pointer_to_heap() >function? The only problem there is that, if the pointer *isn't* to a valid ruby object you run the risk of falling off the end of the world, or misreading other data and thinking it's an object. "A lack of segfaulting is not proof of correctness" and all. -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai dan@sidhe.org have teddy bears and even teddy bears get drunk