Your terminology confuses me. You seem to mean "program" in many cases where you talk about "object"; it's for instance not possible to inherit an object - only programs (aka classes) can be inherited.
Anyway, whatever you mean there are probably no builtin tools to do lookups in the reverse direction, mostly because they are very uncommon operations.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-03-03 22:36: Subject: Children and Clones
I was wondering something. I read that Pike keeps linked lists for all objects/programs/functions/etc. and I also noticed that you can use _prev() and _next() to iterate through these. I wanted to know if there was other ways to traverse these lists.
To get down to it, what I need is a way to find all the children of a specified object, and a way to find all the clones of a specified object.
Currently the only way I can think about doing it is using programs and that is backwards: create a blank array, iterate through the list of programs, check what it inherits, save the pointer to the program in the array if it inherits Obj X, iterate again, etc. until through the whole list.
That just seems too much to me. Any help would be appreciated.
Thanks Kaylus
/ kaylus