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

Home » Public Forums » archive » HASH assignment
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
HASH assignment [message #90080] Fri, 23 January 2015 10:35
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
One inconvenience of IDL hashes is that nested hash keys do not auto-instantiate. You must test for the presence of a key, and then create a sub-hash if not found. Other languages let you just say the equivalent of:

a=hash()
a['b','c','d']=1

and have all the nested hashes (here: a['b'] & a['b','c']) created automatically. While working around this (i.e. defining nested hashes myself and referencing them), I found a segfault but in IDL 8.4:

IDL> a=hash() & c=(a['b']=hash())

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: GOES_GeoTiff_Plot
Next Topic: IDL inverse matrix problem??

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

Current Time: Wed Oct 08 07:24:13 PDT 2025

Total time taken to generate the page: 0.00735 seconds