Make using compiled libs with debug code better
H. S. Teoh
hsteoh at quickfur.ath.cx
Mon Oct 18 14:07:13 UTC 2021
On Mon, Oct 18, 2021 at 09:04:47AM -0400, Steven Schveighoffer via Digitalmars-d wrote:
> Would it be a reasonable thing to change contracts to be called by the
> caller instead of the callee?
We've brought this up before years ago. For whatever reason nothing
came of that discussion. But yeah, it doesn't make sense for contracts
to be called in the callee; it should be called in the caller. Well,
in-contracts, anyway. Out-contracts probably should be in the callee.
> Is that something that could make its way into D, such that the input
> checking of functions that are compiled for release still can run when
> you compile your code in non-release mode?
That would be very nice.
If it breaks, you get to keep both pieces. -- Software disclaimer notice
More information about the Digitalmars-d