contracts for external functions?

bearophile bearophileHUGS at lycos.com
Mon Aug 23 14:03:48 PDT 2010


Trass3r:
> extern(C) int foo(int i)
>    in { assert(i > 7); }
>    out (result) { assert(result & 1); }

A nice idea to remember (regardless the syntax used to do it).

Bye,
bearophile


More information about the Digitalmars-d mailing list