throws(statement, ErrorType)

spir denis.spir at gmail.com
Sun Jan 23 03:08:21 PST 2011


On 01/23/2011 09:47 AM, bearophile wrote:
> 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

No, not yet. I don't see your point.

Denis
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list