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