assert

ryuukk_ ryuukk.dev at gmail.com
Wed Sep 11 10:08:29 UTC 2024


On Wednesday, 11 September 2024 at 09:14:39 UTC, Nick Treleaven 
wrote:
> 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


Oh right, "illegal instruction" is what users should read in 
order to "fix" their code

I again apologies for being wrong and i apologies again for 
trying to improve things, i didn't meant to do that, i now may 
leave again


More information about the Digitalmars-d-learn mailing list