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

Home » Public Forums » archive » Re: Problem of precedence with pointer and 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
Re: Problem of precedence with pointer and structure [message #47159 is a reply to message #47158] Fri, 27 January 2006 08:18 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
Hi,

pointer dereference works only on scalar pointers (it can not be
guaranteed that all the pointers point to heap variables of the
same type/structure in a pointer array).

regards,
lajos

On Fri, 27 Jan 2006, L. Testut wrote:

> a=replicate({b:ptr_new(findgen(10)),c:ptr_new(findgen(20))}, 3)
>
> Is it possible to do the same replacement as above ???
>
> IDL> (*a[*].(0))=0.5 ;doesn't work
> % Expression must be a scalar in this context: <POINTER Array[3]>.
> % Execution halted at: $MAIN$ 1
>
> Thanks,
> Laurent
>
>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Problem of precedence with pointer and structure
Next Topic: Re: Extract a sub-structure from a structure

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

Current Time: Fri Oct 10 14:16:09 PDT 2025

Total time taken to generate the page: 0.00844 seconds