template printIt*[T](x: T) =
        const o = astToStr(x).split(".")
        when o.len == 2:
            x.printA()
        elif o.len == 1:
            x.printB()
    
    
    Run

updated! @ElegantBeef , thanks for the reply, now I am feeling the power of Nim!

Reply via email to