throws(statement, ErrorType)

bearophile bearophileHUGS at lycos.com
Sun Jan 23 00:47:13 PST 2011


spir:

> How to write a predicate like:
> 	assert( throws(someStatement, ErrorType) );

Are you using Design By Contract a lot? Contracts need to contain asserts only...

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list