2007-03-15から1日間の記事一覧

Design by Contract(5)

ひとまず完成した。DesignByContract_v0.1.zipclass Foo { @Invariant(enableds={true, true}) @PreCondition(exps={"$1.doubleValue() == 10", "$2.intValue() > 0"}) @PostCondition(exps={"$1.doubleValue() == 10", "$2.intValue() > 0"}) int invaliant…