CTFE Evaluation with JSON Objects
Steven Schveighoffer
schveiguy at gmail.com
Thu Jan 23 13:00:32 UTC 2020
On 1/22/20 7:20 PM, Petar Kirov [ZombineDev] wrote:
> // Q: Why does this fail?
> // A: Because of a slightly obscure implementation
> // detail of std.json:
> //
> https://github.com/dlang/phobos/blob/45b2b0d1ad67ee041cf67e4e10c9e225b75acb18/std/json.d#L1275-L1281
>
> // Basically, if the value read is a non-negative
> // integer, the `uinteger` union member is set,
> // however if the value is <= 2^^63,
> // then the `JSONType.integer` type is set,
> // which prevents reading through the uinteger() JSONValue property.
This is a bug in std.json that can/should be fixed.
https://issues.dlang.org/show_bug.cgi?id=20527
I'll whip up a PR.
-Steve
More information about the Digitalmars-d
mailing list