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

Home » Public Forums » archive » modifying hash/dict elements
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: modifying hash/dict elements [message #88648 is a reply to message #88647] Fri, 23 May 2014 09:02 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi JD,

Thanks for the feedback. Regarding the increment ++ and decrement -- operators, these are not currently implemented for operator overloading. This is something that we could do in the future.

Regarding your other question about auto-instantiation, I'm not sure that would be a good idea. Why would it make sense to instantiate the key as an integer, as opposed to any other data value?

It seems like you should at least have to declare what type of data you want, before doing any math operations.

Also, I think it's cool enough that it automatically adds the key for you. For example:
IDL> h = dictionary()
IDL> h.foo = 1.0
IDL> h.foo += 1
IDL> print, h.foo
2.00000

This way you can do things like create "dynamic" structures on the fly, etc.

Just to continue the discussion, are there other missing features for hash, dictionary, and orderedhash that you would like to see?

-Chris
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: vector subscripts not working
Next Topic: GDL workshop in France, 10-13 June 2014

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

Current Time: Fri Oct 10 15:46:06 PDT 2025

Total time taken to generate the page: 0.88043 seconds