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

Home » Public Forums » archive » Re: Pass Pointer through procedures
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: Pass Pointer through procedures [message #55256 is a reply to message #55255] Thu, 09 August 2007 06:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
payon@gmx.de writes:

> what is the simpliest way to pass pointers through procedures? I
> couldn't find anything which exlpain it well. Ok, I read some
> different things a bout pointers and they weren't helpful.

You are reading the wrong things. Try this:

http://www.dfanning.com/misc_tips/pointers.html

Pointers are nothing more or less than IDL variables. While
it is true that the thing the pointer points to is stored
in a global memory location, the pointer itself is a local
variable and must be treated as such.

And you are also correct that if you are going to use Common
blocks, there is no advantage to pointers, unless the
thing you are pointing to will be changing in the course
of the IDL session.

The usual way to pass variables among procedures and functions
is via positional or keyword parameters.

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: Pass Pointer through procedures
Next Topic: Structure Containing Structure: question about parentheses

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

Current Time: Wed Dec 03 00:56:08 PST 2025

Total time taken to generate the page: 0.80031 seconds