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

Home » Public Forums » archive » Case Insensitive Hash but still preserve cases of original keys
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: Case Insensitive Hash but still preserve cases of original keys [message #89015 is a reply to message #89014] Tue, 15 July 2014 05:32 Go to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Tuesday, July 15, 2014 1:11:06 PM UTC+2, SonicKenking wrote:

> What I am confused is how PRINT gets the value for the key "X"? It seems to me that it should call something like self["X"], i.e. SpecialHash::_overloadBracketsRightSide. However it is not the case and this can be verified by setting a breakpoint as well.

There is an undocumented function hash::get:

IDL> print, (hash(0,0))[0]
0
IDL> .comp hash_get
% Compiled module: HASH::GET.
IDL> print, (hash(0,0))[0]
HASH::GET called: 0
0
IDL>

hash_get.pro is:

function hash::get, key, _extra=ext
print, 'HASH::GET called: ', key
return, 0
end

PRINT probably calls self.get(...), so you can try to add a SpecialHash::Get function.

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
Previous Topic: CONTOUR: Data coordinate system not established error
Next Topic: Normalize image after running FLAASH

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

Current Time: Wed Oct 08 17:11:16 PDT 2025

Total time taken to generate the page: 0.00357 seconds