Feature request: empty behavior on assert failure
Dukc
ajieskola at gmail.com
Wed May 11 10:12:16 UTC 2022
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 .
More information about the Digitalmars-d
mailing list