delete hash[key] deprecated???
Leandro Lucarella
llucax at gmail.com
Tue Jul 15 09:40:07 PDT 2008
Max Samukha, el 15 de julio a las 17:54 me escribiste:
> >> >>If not, do I have to do:
> >> >>auto c = hash["x"];
> >> >>hash.remove["x"];
> >> >>delete c;
> >> >
> >> >Yeah, you do.
> >>
> >>
> >> No I don't.
> >>
> >> delete * cast(Object*) &hash["x"];
> >
> >Phew! That's much better! (!) o_O
>
> An alternative hack:
>
> delete *("x" in hash);
It just gets better and better ;)
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
22% of the time a pizza will arrive faster than an ambulance in Great-Britain
More information about the Digitalmars-d-learn
mailing list