Sometimes you need to make a copy of the object before storing it to the
list.
Thus, try to replace Add(listx,x); with Add(listx,ShallowCopy(x));

HTH,
Dmitrii.
-- 
Dima Pasechnik
http://www.ntu.edu.sg/home/dima/



_______________________________________________
Forum mailing list
[email protected]
http://mail.gap-system.org/mailman/listinfo/forum

Reply via email to