Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!aplcen!uakari.primate.wisc.edu!polyslo!ttwang From: ttwang@polyslo.CalPoly.EDU (Thomas Wang) Newsgroups: comp.lang.c++ Subject: copy objects to another location Message-ID: <14265@polyslo.CalPoly.EDU> Date: 8 Sep 89 21:03:22 GMT Reply-To: ttwang@polyslo.CalPoly.EDU (Thomas Wang) Distribution: usa Organization: Cal Poly State University -- San Luis Obispo Lines: 17 I have discovered an interesting issue during the implementation of my garbage collection project. There does not appear to be a portable way to copy an object from one memory location to another. The operator '=' might be overloaded, so I cannot depend on it for copying. If I can copy an object, then I can compact the memory when doing garbage collection. Right now, heap fragmentation is a possibility. On the other hand, the C language has always the problem of heap fragmentation, and yet it's the most popular language! -Thomas Wang (I've always wanted a 1/1 scale model of Ayukawa Madoka lying in my room.) ttwang@polyslo.calpoly.edu