Good Contract programming idiom?

Steven Schveighoffer schveiguy at yahoo.com
Thu Mar 4 04:00:38 PST 2010


On Wed, 03 Mar 2010 18:58:54 -0500, Lionello Lunesu  
<lio at lunesu.remove.com> wrote:

> You make a good point, but there's one problem I have with this.
>
> I'm looking at this as a library writer. I can write in-contracts with
> assertions, but I would not feel comfortable with only assertions, since
> I know they will not get compiled in a release build of the library.

Contracts and invariants also are not compiled in a release build of the  
library.

-Steve



More information about the Digitalmars-d mailing list