I have a big file `foo.nim`. I split it putting all types from `foo.nim` in a 
`bar.nim` file.

Now `foo.nim` does not compile anymore

**foo.nim**
    
    
    import bar
    
    # procs...
    
    
    Run

while this version with include does

**foo.nim**
    
    
    include bar
    
    # procs...
    
    
    Run

I don't understand what `import` really does. For me, it was like importing 
symbols by a linker and I don't understand why both versions don't compile.

Reply via email to