Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!portc01.blue.aol.com!portc02.blue.aol.com!howland.erols.net!news.sprintlink.net!news-peer.sprintlink.net!uunet!in3.uu.net!news.tufts.edu!cam-news-feed5.bbnplanet.com!WWW1!not-for-mail
From: Paul Vienneau <pviennea@foxboro.com>
Subject: [VW] copying bidirectional relationships
Message-ID: <32947634.2C73@foxboro.com>
Date: Thu, 21 Nov 1996 10:33:09 -0500
Reply-To: pviennea@foxboro.com
Organization: The Foxboro Company
X-Mailer: Mozilla 3.01 (WinNT; I)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 18

Just curious as to how some of you have handled copying when it comes to
bidirectional releationships.

For instance.

Object A has an attribute which refers to Object B.
Object B has an attribute which refers to Object C.
Object C has an attribute which refers to Object A.

You get the picture...

So, if I wish to copy Object A, B, and C, how do I avoid 
infinite recursion with postCopy and maintain the correct reference 
from the attribute of Object C to the newly copied Object A.

Thanks

Paul

