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

Home » Public Forums » archive » Re: dereferencing pointer arrays.
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: dereferencing pointer arrays. [message #33959] Wed, 05 February 2003 20:33 Go to previous message
Rochelle Hatton is currently offline  Rochelle Hatton
Messages: 2
Registered: February 2003
Junior Member
It's always an obvious thing isn't it.
That's exactly what I am missing- a few extra brackets!
Thanks.

David Fanning wrote:


>
> It doesn't even matter that you have pointer arrays:
>
> IDL> ptrarray = ptrArr(2)
> IDL> ptrarray[0] = ptr
> IDL> bb = Assoc(lun, bytarr(64, 64, 15))
> IDL> ptrarray[1] = ptr_new(bb)
> IDL> vol = (*ptrarray[1])[0]
>
> I think the whole point of using the pointer in the previous
> context is that it was the only way to pass an associated variable
> in an info structure between widget program modules. There
> was no way to store the associate variable in the structure
> otherwise. It was the sort of thing that was likely to impress
> the IDL EPA committee, but pretty much useless otherwise. :-)
>
> Cheers,
>
> David
>
> P.S. The alternative is to store the lun in the structure,
> and make the associated variable (using the lun) whenever you need it.
>
>


--
Rochelle Hatton
Medical Physicist
Department of Nuclear Medicine and Ultrasound
Westmead Hospital ph(02) 9845 7223
[Message index]
 
Read Message
Read Message
Previous Topic: dereferencing pointer arrays.
Next Topic: machine dependant sort & other IDL mysteries

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

Current Time: Fri Oct 10 18:03:45 PDT 2025

Total time taken to generate the page: 0.00194 seconds