[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
do I really need to use loops on objects?
- Subject: do I really need to use loops on objects?
- From: Brad Gom <b_gom(at)hotmail.com>
- Date: Tue, 30 Nov 1999 15:00:49 -1000
- Newsgroups: comp.lang.idl-pvwave
- Organization: InterNetNews at News.BelWue.DE (Stuttgart, Germany)
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:17556
It seems odd to me that I can't treat object arrays with the same
elegance that is possible with all other array types. If I have a large
list of objects of the same type, and I want to call the same method on
each of them, do I really have to use a for loop? Wouldn't it be more
consistent with the IDL philosophy to write: object_array->method()
instead of: for i=0,10 do object_array[i]->method()
I'm just getting back into IDL after a short hiatus, and back to object
programming in particular.. is there something I've missed?
Brad