Um? Why do you want to make an iterator that takes a program as it's argument?
If you want to make an iterator for linked lists, you should make an iterator class as an inner class to the LinkedList class, with 0 arguments to the constructor.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-01-24 11:49: Subject: Two questions
Is there anyway to reach it?
It's when I create an Iterator and get an program as argument to
create() and I want to make sure that the program is the kind of class it should iterate over.
something like this
PIKEFUN void create(program l) { if (l is a LinkedList) <-- how to solve this? { then init } else { Throw error } }
/ Peta, jo det är jag