1 2 3 4 5 6 7 8 9
type Foo* = object fooa, foob: int proc createFoo*(a, b: int): Foo = Foo(fooa: a, foob: b) template geta*(f: Foo): expr = f.fooa