missing HexString documentation
Walter Bright
newshound2 at digitalmars.com
Thu Feb 8 00:24:22 UTC 2018
On 2/7/2018 8:03 AM, Ralph Doncaster wrote:
> As expected,
> auto data = cast(ubyte[]) x"deadbeef";
> works with -betterC, but
> auto data = cast(ubyte[]) hexString!"deadbeef";
> does not.
>
When I tried it:
import std.conv;
void test() {
auto data = cast(ubyte[]) hexString!"deadbeef";
}
with:
dmd -c -betterC test2.d
it compiled without complaint. Are you doing something different? (This is why
posting complete examples, not snippets, is better. That way I don't have to
fill in the blanks with guesswork.)
More information about the Digitalmars-d
mailing list