contracts for external functions?

Trass3r un at known.com
Mon Aug 23 14:16:11 PDT 2010


>> 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).

At least that's the interface contracts syntax (wonder why there's no ';')


More information about the Digitalmars-d mailing list