hex strings

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Jan 26 12:32:53 PST 2011


On 01/26/2011 02:16 PM, Simen kjaeraas wrote:
> Ellery Newcomer <ellery-newcomer at utulsa.edu> wrote:
>
>> just out of curiosity, does anyone use these and actually mean them to
>> be strings? It seems like I'm invariably writing
>>
>> cast(ubyte[]) x"..."
>
> Never used them, tbh. But shouldn't that be
>
> cast(ubyte[]) x"...".dup
>
> ?
>

yeah, strictly speaking. but that (or cast(immutable(ubyte[]))) would be 
even uglier.


More information about the Digitalmars-d-learn mailing list