so it looks as though you can use getTypeInst or specify the static type.

you might also consider attaching values to a type with custom pragmas: 
    
    
    import macros
    template values(vals:tuple){.pragma.}
    type
      Foo{.values:("hello",10)} = object
    
    
    let f = Foo()
    if f.hasCustomPragma(values):
      echo f.getcustomPragmaVal(values) #(vals:("hello",10))
    
    
    Run

Reply via email to