From: ·······@ee.iitm.ernet.in
Subject: When does lisp copy an object?
Date: 
Message-ID: <6nl0ic$b1r$1@nnrp1.dejanews.com>
Hi,	I'd like to know when Lisp makes a copy of an object and when it just
passes a reference to it.	  I have a (corner-stitched) data structure
which consists of tiles, each tile having a pointer to the tiles at it
top-right, right-top, bottom-left and left-bottom corners.     Operations are
for e.g. finding neighbour tiles, inserting tiles, etc. I want to make sure
that no tile objects are ever copied, because then stitches from neighbouring
tiles will be invalid.	       If I make a list of the neighbours and pass it
along, am I sure that none of the members are copied?	 Please explain.  I
have tried this out, and the results are ambiguous - my code has so many bugs
already that I don't know where the problem is :-).

Thank you for your time,
Mani.
--
R. Balasubramanian (·······@ee.iitm.ernet.in)
Stamp out quicksand!

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum