Make using compiled libs with debug code better

Elronnd elronnd at elronnd.net
Mon Oct 18 21:51:51 UTC 2021


On Monday, 18 October 2021 at 13:04:47 UTC, Steven Schveighoffer 
wrote:
> Would it be a reasonable thing to change contracts to be called 
> by the caller instead of 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?

What if I take a pointer to a function with contracts and call it 
from someplace that doesn't know about those contracts?

Better to leave assertions on by default, and make you have to go 
out of your way to turn them off.  IMO.


More information about the Digitalmars-d mailing list