delete hash[key] deprecated???

Max Samukha samukha at
Sat Jul 19 00:38:13 PDT 2008

On Sat, 19 Jul 2008 10:35:01 +0300, Max Samukha
<samukha at> wrote:

>On Fri, 18 Jul 2008 22:27:16 +0100, "Stewart Gordon"
><smjg_1998 at> wrote:
>>"Max Samukha" <samukha at> wrote in message 
>>news:9d2r74tuopl0dt05sgnkagss4gu4824k9m at
>>> If 'remove' was modified to return the removed value, more compact
>>> syntax would be possible:
>>> delete hash.remove("x");
>>And what would remove do if the key is already not in the AA?  Return 
>>ValueType.init?  Throw an exception?
>Three options:

I meant four options.

More information about the Digitalmars-d-learn mailing list