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

Home » Public Forums » archive » Storing !NULL in struct
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: Storing !NULL in struct [message #83636 is a reply to message #83531] Fri, 15 March 2013 07:02 Go to previous messageGo to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Friday, March 15, 2013 9:10:45 AM UTC+1, Tom Grydeland wrote:
>
> IDL> c = List({ t: 0})
> IDL> print, c[0].t
> 0
> IDL> c[0].t = 1
> % Attempt to store into an expression: Structure reference.
> % Execution halted at: $MAIN$

This is a bug IMHO. This construct should work as a structure array works (LIST is a pointer array in disguise):

IDL> a=replicate({t:0}, 1)
IDL> a[0].t=1
IDL> print, a[0].t
1

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HASH makes too many temporaries
Next Topic: MGlib IDL library

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

Current Time: Sat Oct 11 05:46:43 PDT 2025

Total time taken to generate the page: 1.36793 seconds