[Issue 9482] Option to compile in release mode, but keep in contracts on non-private functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 13 22:40:27 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=9482

--- Comment #3 from Basile-z <b2.temp at gmx.com> ---
(In reply to Stewart Gordon from comment #2)
> At first I thought this was a Linux-specific feature - but I see now it's in
> the Windows, OSX (which is called macOS now) and FreeBSD versions alike. 
> Any idea when this feature was added?  Furthermore, does this switch on in
> contracts for all functions, or does it exclude private functions?

it was added in version 2.084:

https://dlang.org/changelog/2.084.0.html#check-switch

Sorry I missed the "private" criterion... maybe reopen if the check feature is
not sufficient.

--


More information about the Digitalmars-d-bugs mailing list