delete hash[key] deprecated???

Leandro Lucarella llucax at gmail.com
Tue Jul 15 07:13:33 PDT 2008


Stewart Gordon, el 15 de julio a las 01:14 me escribiste:
> "Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message 
> news:fopjrt$1b2c$1 at digitalmars.com...
> <snip>
> >>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

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
More people die from a champagne-cork popping,
than from poison spiders


More information about the Digitalmars-d-learn mailing list