In your case you probably want reference semantics all the way, unless you 
duplicate "Person" instances so
    
    
    type
      Person = ref object
        prefers: Person
    
    proc engage(p1, p2: Person) =
      p1.prefers = p2
      p2.prefers = p1
    
    
    Run

Reply via email to