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

Home » Public Forums » archive » Re: Where is the right place to define new structs?
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: Where is the right place to define new structs? [message #26499] Wed, 05 September 2001 11:48 Go to previous message
Stein Vidar Hagfors H[1] is currently offline  Stein Vidar Hagfors H[1]
Messages: 56
Registered: February 2000
Member
Olaf Stetzer <olaf.stetzer@imk.fzk.de> writes:

> Hello again,
>
> just another question:
>
> I want to implement a function for thermodynamic
> calculations I need. This function needs a parameter
> set as input and returns a parameter set as output, so
> I have to define the structs which hold these sets
> somewhere.
>
> I think that the right place is in the same .pro-file

Nope. For a structure named "mystruct", put it in a file called
mystruct__define, inside a PRO called mystruct__define, with no
arguments. This will automatically be run if mystruct is not defined,
upon the first encounter of statements like

my_var = {mystruct}

E.g. mystruct__define.pro:

PRO mystruct__define
dummy = {mystruct, fielda:0.0, fieldb:"" }
END

--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO

NASA Goddard Space Flight Center, Email: shaugan@esa.nascom.nasa.gov
Mail Code 682.3, Bld. 26, Room G-1, Tel.: 1-301-286-9028/240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Display clashes under Red Hat Linux 7.1/IDL 5.2
Next Topic: Re: color bitmap button labels

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

Current Time: Fri Oct 10 18:12:50 PDT 2025

Total time taken to generate the page: 0.72051 seconds