From: "Mauricio Fernández" Date: 2005-07-22T08:56:33+09:00 Subject: Re: C extension makes things slower On Fri, Jul 22, 2005 at 06:36:00AM +0900, Charles Mills wrote: > As it stands right now if you do something like: > point - "hey" > you will probably crash Ruby or worse. > > Another option would be to do (untested/uncheck code): > > #define IsACO_Point(v) (TYPE(v) == T_DATA && RDATA(v)->dfree == > aco_point_free) point - "hey" would actually be OK since Data_Get_Struct first does a Check_Type(obj, T_DATA), but point - SomeOtherRDataType.new would indeed bomb. Good catch. -- Mauricio Fernandez