you forgot to deref r
    
    
    proc `$`(r: ref): string =
      if r.isNil:
        "nil"
      else:
        $r[]
    
    
    Run

Reply via email to