Thread overview | |||||
---|---|---|---|---|---|
|
September 25, 2002 Why no 'dup' property for associative arrays? | ||||
---|---|---|---|---|
| ||||
Thoughts, anyone? |
September 25, 2002 Re: Why no 'dup' property for associative arrays? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russell Lewis | 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 |
September 26, 2002 Re: Why no 'dup' property for associative arrays? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russell Lewis | 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.
|
Copyright © 1999-2021 by the D Language Foundation