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

Home » Public Forums » archive » Re: Object Data and pointer assignments
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: Object Data and pointer assignments [message #19313 is a reply to message #19310] Thu, 09 March 2000 00:00 Go to previous messageGo to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
"J.D. Smith" wrote:

>
> The only reason I quibble is to dispel the notion that the __define in class
> definitions merely suggests or defines the class data members, as it does for
> fields of structures, and that you must "fill out" the skeleton of class data in
> the Init method. In the context of object creation, obj_new *does* in fact
> implicitly assign values to them all: namely null (0,'',null pointer, etc.).
> You can think of the first step of obj_new being something like
> self={MY_CLASS}. So by the time you get to the Init Method, you do have a
> *real* pointer, namely a null pointer.
>
>

Hello,

This doesn't sound like a quibble to a newbie. So, the filling out of the
skeleton may or may not occur in the INIT function, but not in the __DEFINE
procedure.

You have brought up the the issue of SELF ... which is another source of
confusion. I have just written the SetProperty and GetProperty methods. They
work just fine (so far I can get and set what I need). However, it feels a little
bit like living in Flatland where things pop in and out of my two dimensions from
some unkown third dimension. Magically, SELF appears as if out of thin air; how
does it get there if there is no SELF argument in the procedure... and how come I
don't have to call the structure BLAH (rather than self) if it is a named
structure?

Thanks again,

Ben




--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
[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: Q: contour levels from IDL
Next Topic: Re: IDL and Linux on dual processor

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

Current Time: Sat Oct 11 03:38:30 PDT 2025

Total time taken to generate the page: 0.64068 seconds