Usually if you need to know if an object is of a particular type from a C module, it's because you need to access the object's storage. In this case you should use the get_storage() function, which will either return the storage or NULL if the object is not of the required type. This works with subclasses etc.
If it's not because you need to access the storage, then you'll have to explain why you need to know the objects type. :-)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-02-03 13:20: Subject: Object comparision in C module
Hi,
How to compare two objects which are implemented in C module?
What I don't know is how to make sure that other object is of same type.
Is it field "subtype", or? Where object type is stored and how it is assigned, BTW?
Thanks!
Regards, /Al
/ Brevbäraren