comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » do I really need to use loops on objects?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: do I really need to use loops on objects? [message #18168 is a reply to message #18095] Thu, 02 December 1999 00:00 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message
news:onr9h6o315.fsf@cow.physics.wisc.edu...
> 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.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wrong Slice order
Next Topic: Re: Help needed with reading ASCII data

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 05:01:22 PDT 2025

Total time taken to generate the page: 0.56152 seconds