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

Reply via email to