Replace core language HexStrings with library entity

FG via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 15 15:32:04 PDT 2015


On 2015-03-15 at 22:41, bearophile wrote:
> Walter Bright:
>
>> Unfortunately, it needs to be a dropin replacement for x"...", which returns a string/wstring/dstring.
>
> This is bad. 99% of the times you don't want a string/wstring/dstring out of a hex string:

Then maybe hex!"..." should produce the desired ubyte[] and something with a different name (for example hexString!"...") would be the drop-in replacement for x"...", returning a string. The more complex name being a hint that what you really need is hex.


More information about the Digitalmars-d mailing list