hex strings

bearophile bearophileHUGS at lycos.com
Wed Jan 26 12:35:05 PST 2011


Simen kjaeraas:

> > cast(ubyte[]) x"..."
> 
> Never used them, tbh. But shouldn't that be
> 
> cast(ubyte[]) x"...".dup

Maybe it's to avoid such mistakes that C++ has const_cast separated from other casts.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list