A strange div bug on Linux x86_64, (both dmd & ldc2): long -5000 / size_t 2 = 9223372036854773308
mw
mingwu at gmail.com
Thu Aug 13 23:45:03 UTC 2020
On Thursday, 13 August 2020 at 23:33:27 UTC, James Blachly wrote:
> On 8/13/20 5:33 PM, Walter Bright wrote:
> You make a very good case for the choice overall but not the
> lack of warnings. Part of the issue (IMO) is that D is /more/
> than just a systems language (side note, it sometimes seems it
> tries to be everything to everyone), hence the original
> complaint of "silent" or surprising errors cropping up in the
> context of e.g.
>
> Array.length
>
> returning ulong. Especially in cases like this, compiler
> warnings would be helpful.
Yes, I want the warning messages, so I know where are the
potential problems are located, and *explicitly* write
intentional cast to fix them; instead of spending nights
debugging the application.
More information about the Digitalmars-d
mailing list