namespace; include rt; // struct methods declare a return type and typed parameters, like functions do struct Str { int len; static int size(int s) { return s * 2; } int plus(int k) { return this.len + k; } static fn none() { return 5; } } int main() { Str a; a.len = 9; rt.put_n(Str.size(7)); rt.put_c(32); rt.put_n(Str.none()); rt.put_c(32); rt.put_n(a.plus(4)); rt.put_c(10); return 0; }