Only want to say

Ali Çehreli acehreli at yahoo.com
Tue Jan 12 20:29:40 UTC 2021


On 1/12/21 6:41 AM, ddcovery wrote:

 > I didn't know about this distinction in D... thank you for the help!!!
 > (I am throwing "error" instead "exception": I will be careful with this
 > distinction)

In case someone finds more wording on the matter useful:

   http://ddili.org/ders/d.en/exceptions.html#ix_exceptions.Exception

   http://ddili.org/ders/d.en/assert.html

 
http://ddili.org/ders/d.en/contracts.html#ix_contracts.assert%20vs.%20enforce

 > Note:  I found that "invariant" for classes/structs can be removed using
 > a compiler flag, but I didn't found information about removing the
 > in/out... is it performed directly by compiler when generating a release?

-release command line switch should remove all contracts (except perhaps 
for @safe code? I'm not sure.)

Ali



More information about the Digitalmars-d mailing list