missing HexString documentation
Walter Bright
newshound2 at digitalmars.com
Thu Feb 8 01:58:10 UTC 2018
On 2/7/2018 5:03 PM, Seb wrote:
> On Thursday, 8 February 2018 at 00:24:22 UTC, Walter Bright wrote:
>> 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.)
>
> https://run.dlang.io/is/TEJDZO and hit "Run".
I wish people would say "does not link" or "links with undefined symbols" or
something more helpful than "does not work" leaving me to guess.
> I also opened a Bugzilla issue, s.t. it doesn't get lost
> https://issues.dlang.org/show_bug.cgi?id=18395
More information about the Digitalmars-d
mailing list