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

Home » Public Forums » archive » Broken hash init()
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
Broken hash init() [message #73183] Wed, 27 October 2010 15:57
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
I just noticed that the init method is not properly creating hashes
from structures on some situations:

IDL> a={b:list(1,2)}
IDL> print,a
{<ObjHeapVar1(LIST)>}
IDL> print,a.b
1
2
IDL> h=hash(a)
IDL> print,h
B: 1

Or,

IDL> a={b:[1,2]}
IDL> print,a
{ 1 2
}
IDL> h=hash(a)
IDL> print,h
B: 1

But this works:

IDL> a={b:9,c:[5,8]}
IDL> print,a
{ 9 5 8
}
IDL> h=hash(a)
IDL> print,h
B: 9
C: 5 8
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fragile IDL 8 Object Programs
Next Topic: Overplot data on a 2d histogram

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

Current Time: Wed Oct 08 19:13:48 PDT 2025

Total time taken to generate the page: 0.00432 seconds