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

Home » Public Forums » archive » Re: Structure assign question
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: Structure assign question [message #28157 is a reply to message #28123] Wed, 21 November 2001 13:54 Go to previous message
David Fanning is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: Smart Commons, Was: can i place a job advert
Next Topic: Re: Capturing screen output

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

Current Time: Sat Oct 11 21:35:37 PDT 2025

Total time taken to generate the page: 0.04022 seconds