Re: Structure assign question [message #28157 is a reply to message #28123] |
Wed, 21 November 2001 13:54  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst (paul.vandelst@noaa.gov) writes:
> I have begun my foray into objects in IDL
Hey! Alright!
> Here is where the question may or may not be considered brain-dead. Is this sort of (named)
> structure assign o.k., i.e. does the entire heirarchy of pointers and structures within the
> "profile" structure variable get assigned (it appears so at this point but I'm still testing).
This looks fine to me.
> And am I creating a separate instance of the PDprofile structure or am I confusing the pointer
> with what the pointer is pointing at (get it?).
I'm not sure what you mean by "separate instance", but I'd
probably write this:
> profile = PDprofile_create( k, j )
> (*self.profile)[ m ] = profile
as this:
(*self.profile)[ m ] = PDprofile_create( k, j )
> Can you tell I'm confused?
I think you are doing fine. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|