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 #89014 is a reply to message #89013] Tue, 15 July 2014 04:11 Go to previous messageGo to previous message
SonicKenking is currently offline  SonicKenking
Messages: 51
Registered: October 2010
Member
Yes the PRINT does call SpecialHash::keys(). I noticed that and that is where the key "X" is obtained.

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.

So in summary, only one of two overriden methods, SpecialHash::keys and SpecialHash::_overloadBracketsRightSide, gets called, while in theory both of them should be called. One for getting the key and one for getting the value associated to the key.

That is what I meant by "hidden mechanism" (or bug maybe) in PRINT. How does it get the value without calling SpecialHash::_overloadBracketsRightSide?

Hopefully someone from Exelis could shed some light on this discussion.
[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 19:25:58 PDT 2025

Total time taken to generate the page: 0.00402 seconds