[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: do I really need to use loops on objects?
Craig Markwardt <email@example.com> wrote in message
> So, object_array->method() *should* call "method" for each object in
> object_array, irregardless of the type of the object. If one of the
> objects doesn't define "method" then an exception should be raised.
I agree, but how should IDL handle data returned by the objects (either the
result of function-type methods or the keyword data returned by a method
like GetProperty)? There is no reason to expect that the return values of a
group of objects should all be of a data type and dimensionality that would
allow them to be bundled into an array.
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand