I think this is the code he was referring to.
    
    
    template someCode(name: untyped): untyped =
      var fname = "Mark"
      var age = 44
      type name = object
        fname: string   # Error: cannot use symbol of kind 'var' as a 'field'
        age: int # Error: cannot use symbol of kind 'var' as a 'field'
      
      # compilation aborted
    
    someCode somename
    
    
    Run

though maybe it's not supposed to work with how symbol binding works in 
templates.

Reply via email to