Worth noting the guard clause can be used on fields.
    
    
    type
      Thing = object
        val {.guard: Lock.}:  int
        lock: Lock
    
    
    Run

Reply via email to