Providing implicit conversion of
Nick Treleaven
nick at geany.org
Mon Jan 22 16:39:10 UTC 2024
On Monday, 22 January 2024 at 03:53:54 UTC, bachmeier wrote:
> There needs to be a safe arithmetic mode because the current
> behavior of `double j = 10 / 3;` is not what anyone expects and
> is a bug 100% of the time.
Don has a solution:
https://issues.dlang.org/show_bug.cgi?id=12452
> I've said multiple times that it's silly to spend so much time
> on memory safety if the language is going to allow stuff like
> this without a simple way to prevent it.
Memory safety issues are a worse class of bug than arithmetic
bugs. The latter are reproducible if you feed them the same input.
More information about the Digitalmars-d-learn
mailing list