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

Home » Public Forums » archive » Re: LinkedHash in IDL
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
Re: LinkedHash in IDL [message #84423] Sun, 02 June 2013 18:38
SonicKenking is currently offline  SonicKenking
Messages: 51
Registered: October 2010
Member
On Wednesday, May 22, 2013 11:38:01 AM UTC+10, timoth...@gmail.com wrote:
> Hi IDL devs,
>
>
>
> I just wanted to ask if there is any plan to add linked hashes to IDL. e.g. like javas LinkedHashMap. These are very usefull when you want the to be able to do hash type lookups but still want the data to be ordered. Its painful to have to track the order seperately then have to resort the hash values.
>
>
>
> Tim

Not sure about the Dev's plan. But you can certainly make your own Class which inherits IDL hash and uses a list for tracking the keys in order. Something like

pro OrderedHash__define, class
class = {OrderedHash, $
keys: list(), $
inherits hash $
}
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bug? Hash and System Variable
Next Topic: Do netCDF Files Have a DataType of INT?

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

Current Time: Wed Oct 08 17:12:13 PDT 2025

Total time taken to generate the page: 0.00580 seconds