version(CONTRACTS) for contracts?
Bill Baxter
dnewsgroup at billbaxter.com
Wed Nov 8 18:00:39 PST 2006
Is there a version statement that corresponds to whether or not
contracts are enabled or not?
I'd like to do something like
in { _check_data_structure_integrity() }
for a bunch of my methods in my class, then something like
version(Contracts) {
_check_data_structure_integrity() {
// do a bunch of complicated stuff here
// and assert if anything's messed up.
}
}
--bb
More information about the Digitalmars-d
mailing list