# In reply to @glomdom. "does anyone know how": proc new(major: uint16, minor: # uint16) should return object, Revision # and `major`, `minor` return uint16 # and then you can this: let rev = revision.new(2, 2) echo rev.major()