You can forward declare procs to reference them before they are defined.
type
Something = object
act*: proc()
name*: string
proc someaction*()
var something = Something(act: someaction)
proc someaction*() =
something.name = "boo"
Run
- Help understanding proc() Pixeye
- Re: Help understanding proc() Hlaaftana
