template printIt*[T](x: T) =
const o = astToStr(x).split(".")
when o.len == 2:
x.printA()
elif o.len == 1:
x.printB()
Runupdated! @ElegantBeef , thanks for the reply, now I am feeling the power of Nim!
