I am trying the following:

1\. The following works: **a.nim**
    
    
    template test*():untyped =
      const
        a* = "hello"
      
      echo a
    
    test()
    
    
    Run

2\. But the following doesn't: **a.nim**
    
    
    template test*():untyped =
      const
        a* = "hola"
      
      include b
    
    test()
    
    
    Run

**b.nim**
    
    
    echo a
    
    
    Run

Is the second version not possible? Do I have to use a macro for that or can I 
get away with the template somehow?

Reply via email to