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

Home » Public Forums » archive » Pointer syntax and IDL 4.0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Pointer syntax and IDL 4.0 [message #28533] Wed, 19 December 2001 12:43 Go to previous message
tam is currently offline  tam
Messages: 48
Registered: February 2000
Member
Recently I upgraded the a couple of routines to use pointers
in certain special cases. However the pointer dereference operator
is illegal prior to version 5.0, so the code fails to compile on
older versions of IDL -- though the great majority of the code is still
useful there. It would be nice to be able to use a single
version of code to support all users, so I'm asking the question:
Is there any way of addressing this, i.e., dereferencing a pointer
in a way that will not cause a syntax error for earlier versions of IDL?


An obvious solution would be if there were a dereferencing function
as well as an operator...

x = ptr_val(some_pointer)

would be the same as

x = *some_pointer

but I don't think IDL supplies one. If I write this one-liner
myself, I may reduce the number of errors in the code to one
but I'd prefer to make it completely transparent...

Any ideas?

Thanks,
Tom McGlynn
tam@lheapop.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDl 5.3.1 on windows 2000
Next Topic: image cutting,

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

Current Time: Wed Oct 08 20:03:37 PDT 2025

Total time taken to generate the page: 0.00430 seconds