Re: Storing !NULL in struct [message #83606 is a reply to message #83531] |
Mon, 18 March 2013 04:41   |
tom.grydeland
Messages: 51 Registered: September 2012
|
Member |
|
|
On Monday, March 18, 2013 9:27:31 AM UTC, alx wrote:
> Le lundi 18 mars 2013 10:00:58 UTC+1, Tom Grydeland a écrit :
>> Either of HASH or LIST would be perfectly fine, if I were able to even assign to already-known fields of structs stored inside them:
>> It's not that I cannot imagine a way of working around this, but it seems to defeat the purpose of providing high-level data structures.
> IDL> h = hash('f', {t:0})
> IDL> help, h
> H HASH <ID=1 NELEMENTS=1>
> IDL> print, h['f'].t
> 0
> IDL> h['f'] = {t:1}
> IDL> print, h['f'].t
> 1
> alx.
Very good, so you, too, understand how to work _around_ this problem.
Do you also understand why I referred to this as defeating the purpose of high-level data structures?
--T
|
|
|