Discussion Thread: DIP 1042--ProtoObject--Community Review Round 1
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sat Jan 15 06:23:42 UTC 2022
On Saturday, 15 January 2022 at 00:56:46 UTC, Greg Strong wrote:
> On Saturday, 15 January 2022 at 00:34:03 UTC, Adam Ruppe wrote:
>> On Saturday, 15 January 2022 at 00:09:38 UTC, Greg Strong
>> wrote:
>>> Huh? Please expound. Pretty sure x < x+1 for plenty of
>>> types in D, or I'm sure I would have noticed by now!
>>
>> Consider the case of int.max + 1....
>
> Ok, fair enough, but given that that issue applies to, like,
> almost every integer format in, like, every programming
> language, I just assumed Ola was rather referring to some
> D-specific problem. If this is indeed the issue to which he
> was referring, well, that's just trolling :D
No. It is D specific. It hold for signed ints in C++ and I
believe it holds in Zig too.
More information about the Digitalmars-d
mailing list