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()
- defining something with surrounding context cy
- Re: defining something with surrounding context Jehan
- Re: defining something with surrounding context cy
