I think "tying procedures to objects" is a planned compiler behaviour for the 
future, but I think the accepted behaviour currently is doing `import story` in 
this case. If you come across this situation where you specifically need 
`utils` but not `story` more than once, you can do this:
    
    
    # utils.nim
    import story
    export story.`$`
    
    proc parseStory*(filename: string): Story =
      ...
    
    
    Run

Reply via email to