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

Home » Public Forums » archive » Re: writing a structure with pointers
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: writing a structure with pointers [message #12362 is a reply to message #12279] Thu, 16 July 1998 00:00 Go to previous messageGo to previous message
lbryanNOSPAM is currently offline  lbryanNOSPAM
Messages: 21
Registered: July 1998
Junior Member
On Wed, 15 Jul 1998 20:35:13 -0600, davidf@dfanning.com (David
Fanning) wrote:

> Lisa Bryan (lbryan@arete-az.com) writes:
>
>> Could someone tell me the easiest way to do the following.
>>
>> state = {.....big long huge structure with many substructures and lots
>>
>> of pointers all over the place....}
>> writeu,unit,state
>>

>
> The alternative, of course, is to SAVE the structure. SAVE
> will store the pointers along with the data they point to, so
> that all can be RESTORED later. This is not always my preferred
> solution, since it is not guaranteed to work with IDL upgrades
> and variables that are not named carefully can be a problem.
> I can imagine that pointer variables might be even more
> difficult to handle than normal variables.
>
> Absent RSI adding some capability to WRITEU, how about you
> let us know when you have this program written, Lisa. :-)
>
> Cheers,
>
> David

Thanks David and Martin,

I might use the save/restore option for the time being and save the
recursive procedure for another day (Not that it didn't sound like a
fun challenge!). Thanks for giving me a good direction. Since my
most immediate desire is to be able to have a user of my GUI be able
to revert the data entry fields to a given point in time, it looks
like save/restore will do that (given the cautions that David
mentioned). Am I correct in understanding that since I have no
external information on the format of these files, they cannot be
accesed except through the IDL RESTORE command nor ammended in any
way?

Lisa

Arete Associates
Tucson, Arizona
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Animated Gif Tool?
Next Topic: MPEG file creation

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

Current Time: Fri Oct 17 10:06:51 PDT 2025

Total time taken to generate the page: 0.24408 seconds