[GAP Forum] simple programming problem

Dima Pasechnik dima at ntu.edu.sg
Sat Aug 19 04:40:21 BST 2006


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/





More information about the Forum mailing list