Ok, I get the problem here. At first I thought you would need an interface 
object to interact with languages like Python, where you do not know the 
fields. But you what you actually want is to treat Nim like as if it is Python, 
and all I can tell you that is a bad idea, and don't do that. You should just 
get used to static types and when you need a field in an object, just add it to 
the type:
    
    
    type
      test* = object
        name : string
    
    var t = test()
    t.name = "kek" #This now works pretty fine
    

Reply via email to