delete hash[key] deprecated???
Stewart Gordon
smjg_1998 at yahoo.com
Fri Jul 18 14:27:16 PDT 2008
"Max Samukha" <samukha at voliacable.com.removethis> wrote in message
news:9d2r74tuopl0dt05sgnkagss4gu4824k9m at 4ax.com...
<snip>
> If 'remove' was modified to return the removed value, more compact
> syntax would be possible:
>
> delete hash.remove("x");
<snip>
And what would remove do if the key is already not in the AA? Return
ValueType.init? Throw an exception?
Stewart.
--
My e-mail address is valid but not my primary mailbox. Please keep replies
on the 'group where everybody may benefit.
More information about the Digitalmars-d-learn
mailing list