From: Eric Jacoboni Date: 2006-01-26T21:28:23+09:00 Subject: Re: simple newbie question kieran kirwan writes: > Hi, > I have a piece of code below in which I; > 1.....make a new NumberList object and append two MyNumber objects. > 2.....copy the NumberList object and append a further MyNumber object. > However after this both objects are the same. > Any help would be greatly appreciated. See > zl2=zl1; As said, you doesn't copy the contents of zl1 in zl2: you make zl2 and zl1 reference the same objet. What you want to do is to copy the *contents* of zl1 into zl2. -- Eric Jacoboni, ne il y a 1441718614 secondes