Re: LinkedHash in IDL [message #84423] |
Sun, 02 June 2013 18:38 |
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
|
|
|