Feature request: empty behavior on assert failure
Tejas
notrealemail at gmail.com
Wed May 11 11:16:11 UTC 2022
On Wednesday, 11 May 2022 at 10:12:16 UTC, Dukc wrote:
> On Wednesday, 11 May 2022 at 09:47:32 UTC, max haughton wrote:
>> If the assertions are turned off via `release` the assertions
>> are completely gone, the optimizer doesn't know about them.
>
> Great! Only a spec change needed then.
>
>>
>> I'd also like to note that anthropomorphizing compilers can be
>> foolish,
>
> What's anthropomorphising?
>
>>the "compiler" doesn't consciously do any undefined
>> behaviour wrangling with D as per se because the backend/s
>> don't really know anything about D.
>
> With the present spec there's no guarantee this will remain the
> case though:
> https://llvm.org/docs/LangRef.html#llvm-assume-intrinsic .
source : https://en.wikipedia.org/wiki/Anthropomorphism
> Anthropomorphism is the attribution of human traits, emotions,
> or intentions to non-human entities.
More information about the Digitalmars-d
mailing list