assert

Nick Treleaven nick at geany.org
Wed Sep 11 09:14:39 UTC 2024


On Wednesday, 11 September 2024 at 08:08:45 UTC, ryuukk_ wrote:
> It is a bug, don't claim it is not, the compiler gives the 
> wrong information, wich lead to a confused user
>
> You don't want confused users, you want compiler say what's up, 
> if i type assert, it should assert, end of the story

The behaviour is by design, it is not a bug, it is documented in 
the spec:
https://dlang.org/spec/expression.html#assert-ct


More information about the Digitalmars-d-learn mailing list