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

Home » Public Forums » archive » Discussion on global variables in IDL
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: Discussion on global variables in IDL [message #26248 is a reply to message #26183] Mon, 13 August 2001 06:41 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
JD Smith wrote:

>
> So yes, I feel your pain. My special difference of opinion with IDL OOP
> is the complete lack of publicly available instance data members,
> forcing one through awkward and slow GetProperty calls at every turn
> (one can verify the inherent slowness by comparing structure lookup
> speed to method invocation/return speed). I even found code broken by
> my desire to avoid this penalty: I was caching in one object another
> object's data members, which later came to be more dynamic. Ouch.

Oh geez,

Just when I think I'm finally beginning to understand objects, JD throws
another curveball. 'Publicly available instance data'. I'm wondering
what that is, and would like to know what you mean; I hope you can field
these questions for me.

All I can imagine is something like the following...

myObj = OBJ_NEW('OBJECT_CLASS', data)

myObj.Name = 'Bob' (rather than myObj->SetProperty, Name = 'Bob')


Am I getting that straight? No method is needed to fiddle with an
object's data?



> My
> secondary complaint is the lack of class variables: variables accessible
> to every instance of a class, for inter-instance communication.

Does this mean that the variable is defined in the OBJECT_CLASS__DEFINE
procedure so it gets intialized with the right value? Instead of my
data field NAME being assigned the value '' at initialization, it gets
assigned the value 'BOB' always?

Thanks,

Ben


--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Array multiplication: implicit loop query
Next Topic: Point inside/outside a polygon?

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

Current Time: Wed Oct 08 18:43:33 PDT 2025

Total time taken to generate the page: 0.03658 seconds