You're Doing In-Conditions Wrong

Panke tobias at pankrath.net
Mon Jul 13 14:29:45 UTC 2020


On Monday, 13 July 2020 at 13:55:56 UTC, FeepingCreature wrote:
>
> But what to do outside debug mode? In my opinion, the 
> reasonable thing to do is to only run the child contract.
>


I don't want any contract checking outside of debug mode. You 
need to check your real inputs independent of the compilation 
mode and the in-contract is not the right place to do it.

On the other hand, having additional checks that are only 'on' in 
debug mode is useful.


More information about the Digitalmars-d mailing list