enum Format

Timon Gehr timon.gehr at gmx.ch
Fri Jan 12 15:06:19 UTC 2024


On 1/12/24 06:33, Walter Bright wrote:
> On 1/11/2024 11:45 AM, Timon Gehr wrote:
>> My point was with DIP1036e it either works or does not compile, not 
>> that you called the wrong function.
> 
> What's missing is why is a runtime check not good enough?

There is no runtime check, it just does the wrong thing.

> The D compiler emits more than one safety check at runtime. For example, array bounds 
> checking, and switch statement default checks.

Sure.


More information about the Digitalmars-d mailing list