Hello guys,

I have been exploring the usage of modules, and I find that it's quite hard for 
Nim to deal with `objects` or `procs` that have the same name as the module 
where they are defined, when imported into other modules:

`foo.nim`
    
    
    type foo* = object
    type foo_foo* = object
    
    
    Run

`bar.nim`
    
    
    import foo
    export foo
    
    
    Run

`baz.nim`
    
    
    import bar
    
    let a = bar.foo_foo()  #works, different name than the "foo" module
    let b = bar.foo()      #doesn't work, same name as the "foo" module
    
    
    Run

Is there a way to achieve this without having to rename the module or the 
`object`?

Reply via email to