racket/collects/honu/examples/Integer-box.honu
2005-05-27 18:56:37 +00:00

14 lines
219 B
Plaintext

type Integer {
int value;
String toString();
}
class IntBox() : Integer impl Integer {
init int value;
String toString() { return new StrBox(value = intToStr(value)); }
export Integer : value, toString;
}