delete hash[key] deprecated???

Max Samukha samukha at voliacable.com.removethis
Sat Jul 19 00:38:13 PDT 2008


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

>On Fri, 18 Jul 2008 22:27:16 +0100, "Stewart Gordon"
><smjg_1998 at yahoo.com> wrote:
>
>>"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.
>
>Three options:

I meant four options.



More information about the Digitalmars-d-learn mailing list