[Issue 302] in/out contract inheritance yet to be implemented

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 24 03:38:47 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=302





------- Comment #8 from maxmo at pochta.ru  2009-04-24 05:38 -------
Isn't it trivial to implement?

---
Foo bar(A a, B b, C c)
{
  try{super.inConstract(a,b,c);}
  catch(Throwable){this.inConstract(a,b,c);}
  //body
  super.outContract(result);
  this.outContract(result);
  return result;
}
---


-- 



More information about the Digitalmars-d-bugs mailing list