Not really, because you still can't define procedures that way. It is neat that 
you can define unnamed blocks though, instead of a dummy name procedure. I 
think what I'm looking for is the {.global.} keyword, actually: 
    
    
    proc something(): foo =
      var thing {.global.} = expensive_initialization()
      return thing.use_cheaply()
    

Reply via email to