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 #58955 is a reply to message #58951] Wed, 27 February 2008 07:25 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> So, I realise this is one of those pass-by-reference or pass-by-value things, but how does
> one get around it? Do I:
> a) make the Type component of the Cloud structure a pointer? (Yuk!)
> b) change the way I pass the Cloud structure into the CRTM_Read_Cloud_Record() fn?
> i.e. not reference the cloud structure array via the index [n].
>
> I would much prefer (b), but will that entail copying entire structures? The number of
> "Clouds" associated with any particular "Atm[m]" profile is variable.

Too much misdirection for me to follow this early in the morning,
but if you pass a structure array in by reference, what are you
copying? I think you are only "copying" if you pass something in
by value. I would go with (b).

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Inverse Map Projection Help
Next Topic: LOG AXIS, itools and tickmarks

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

Current Time: Sat Oct 11 03:05:00 PDT 2025

Total time taken to generate the page: 2.48126 seconds