@shirleyquirk, you are creating the same ref.

See <https://play.nim-lang.org/#ix=2z0O>
    
    
    type MyRef = ref object
      v: int
    
    
    let a = MyRef(v: 10)
    let b = MyRef(v: 10)
    
    echo a == b # false
    
    
    Run

Reply via email to