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

Home » Public Forums » archive » dereferencing a pointer to a complex structure?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
dereferencing a pointer to a complex structure? [message #43417] Mon, 11 April 2005 08:14 Go to previous message
zuzucat@gmail.com is currently offline  zuzucat@gmail.com
Messages: 4
Registered: April 2005
Junior Member
I have a troulbe dereferencing a pointer to a complex structure.

multidata = replicate({ grds:ptr_new(findgen(nx, ny))}, n_level)
data = replicate({time:0, level:multidata}, obs)
I
DL> print, (*data[3].level[3].grds)[0,4]
4.00000

ptr_data = ptr_new(data)

I tried (*(*data[3].level[3].grds))[0,4], but it doesn't work.

Any help would be appreciated.
best,

Nobuki Matsui
CDC/NOAA
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: dereferencing a pointer to a complex structure?
Next Topic: structure access using strings for tag-names

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

Current Time: Sat Oct 11 11:06:26 PDT 2025

Total time taken to generate the page: 0.87770 seconds