www.digitalmars.com         C & C++   DMDScript  

D - Why no 'dup' property for associative arrays?

reply Russell Lewis <spamhole-2001-07-16 deming-os.org> writes:
Thoughts, anyone?
Sep 25 2002
next sibling parent Mac Reiter <Mac_member pathlink.com> writes:
In article <3D91EB73.2090103 deming-os.org>, Russell Lewis says...
Thoughts, anyone?
It's not a "dup", but you can make an optimally hashed copy... Seems like it's called rehash, but I don't remember for sure. Usually used for re-optimizing an assoc array after loading it up, but it has the side effect that it creates a new assoc array rather than modifying the original. (Thank goodness for garbage collection, or I'd leak all kinds of memory with this...) Mac
Sep 25 2002
prev sibling parent Burton Radons <loth users.sourceforge.net> writes:
Russell Lewis wrote:
 Thoughts, anyone?
Uh, accident of omission? I'll mark it in my TODO. That about sums up many of the things you're pointing out, btw. Keep pointing them out here - getting misaligned on these features wouldn't be good for DMD or DLI. If Walter has a problem with one of Russ's trivial feature requests here, he's going to have to speak up.
Sep 25 2002