Of course I could do it the same way, but wouldn't it be better to add this case to D's contract programming similar to interface contracts?
extern(C) int foo(int i)
in { assert(i > 7); }
out (result) { assert(result & 1); }
Of course I could do it the same way, but wouldn't it be better to add this case to D's contract programming similar to interface contracts?
extern(C) int foo(int i)
in { assert(i > 7); }
out (result) { assert(result & 1); }