Article View: comp.lang.clos
Article #322copying instances
From: Clinton Hyde
Date: Tue, 13 Oct 1992 16:13
Date: Tue, 13 Oct 1992 16:13
28 lines
1555 bytes
1555 bytes
there was some discussion recently about copying objects. barmar appears not to like the idea over much. there are good points and bad points. a good point is that it's actually fairly easy. a bad point is that it's not going to be easy to bypass the create and setf (and before/after) methods if you need to. I have code to do the copying. it works quite well, and there's an extra control so that you can avoid copying slots (by name) if there's a reason to do so (believe me, there will be). it's smart enough not to make new copies of things already copied and referenced different places. I use it all the time on my current project. it's not completely generalized regarding when not to copy things, and I won't swear that it copies all possible lisp objects (i don't work with hash-tables, so I don't know if it can handle them...other things likewise). be happy to give a copy of my code to anyone... -- clint -- Clint Hyde "Give me a LispM or give me death!" -- anonymous Advanced Decision Systems/BAH Internet: chyde@chesapeake.ads.com 1953 Gallows Rd, Suite 600 Vienna, VA 22182-3934 (703) 902-7130
Technical Details
Message-ID:
<CHYDE.92Oct13111325@pecos.ads.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!ads.com!chesapeake.ads.com!chesapeake!chydeShow Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!ads.com!chesapeake.ads.com!chesapeake!chyde From: chyde@pecos.ads.com (Clinton Hyde) Subject: copying instances Message-ID: <CHYDE.92Oct13111325@pecos.ads.com> Lines: 28 Sender: usenet@chesapeake.ads.com (USENET News) Organization: Advanced Decision Systems, Mountain View, CA 94043, +1 (415) 960-7300 Date: Tue, 13 Oct 1992 16:13:25 GMT