Only want to say

ddcovery antoniocabreraperez at gmail.com
Tue Jan 12 14:46:52 UTC 2021


On Tuesday, 12 January 2021 at 14:02:02 UTC, Jacob Carlborg wrote:
> On Monday, 11 January 2021 at 18:33:58 UTC, ddcovery wrote:
>
>> I understand... As long as I have seen, the own std library 
>> makes an intensive use of unitesting and avoids the in/out 
>> contract keywords (mainly, I suppose, because it is a 
>> "run-time" check with the obvious performance fault ).
>
> No, it's not a performance issue, contracts can be disabled at 
> compile time and are in the standard library.
>
Yes I see now (https://dlang.org/spec/contracts.html):  "It is 
important to ensure that the code has no side effects, and that 
the release version of the code will not depend on any effects of 
the code. For a release build of the code, in and out contracts 
are not inserted."

I really didn't see this paragraph (I was looking for a flag for 
"removing" in/out assertions at compile time).  My fault!!!

> --
> /Jacob Carlborg

Thankyou!!!




More information about the Digitalmars-d mailing list