You're Doing In-Conditions Wrong

Adam D. Ruppe destructionator at gmail.com
Tue Jul 14 13:49:47 UTC 2020


On Tuesday, 14 July 2020 at 13:37:58 UTC, Steven Schveighoffer 
wrote:
> If you do nothing, what are the chances that
>   a) you know about the contract, and actively decided in(true) 
> is the correct contract for your subtype, and also knew that 
> not providing a contract was the equivalent of in(true) so just 
> didn't write it.

It is actually `in(false)` to inherit the parent's contract. 
in(true) means you accept anything and everything. kinda nuts lol

http://dpldocs.info/this-week-in-d/Blog.Posted_2019_12_02.html


More information about the Digitalmars-d mailing list