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

Home » Public Forums » archive » Re: How to get numbers into passed structure elements (pass-by-value/reference problem).
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: How to get numbers into passed structure elements (pass-by-value/reference problem). [message #58922] Thu, 28 February 2008 02:22 Go to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On Wed, 27 Feb 2008 10:02:46 -0500, Paul van Delst
<Paul.vanDelst@noaa.gov> wrote:


> FUNCTION CRTM_Read_Atmosphere_Record, FileID , $ ; Input
> Atm , $ ; Output
> DEBUG=Debug ; Optional input
> .....
> FOR n = 0, Atm.n_Clouds-1 DO BEGIN
> result = CRTM_Read_Cloud_Record( FileID, (*Atm.Cloud)[n], DEBUG=Debug )
> ...check result....
> ENDFOR

So Atm.Cloud is a pointer to an array of structures. What if Atm.Cloud
would be a pointer to an array of pointers (each pointing to one
structure)? Than you could pass *(*Atm.Cloud)[n]

However, you would loose the ability to do something like this:
(*Atm.Cloud).Type to get all types of clouds.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: LOG AXIS, itools and tickmarks
Next Topic: How to get numbers into passed structure elements (pass-by-value/reference problem).

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

Current Time: Thu Oct 09 17:40:33 PDT 2025

Total time taken to generate the page: 0.72317 seconds