Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!swrinde!ucsd!hub!eiffel!bertrand From: bertrand@eiffel.UUCP (Bertrand Meyer) Newsgroups: comp.lang.eiffel Subject: Re: arrays and garbage collection Summary: Arrays are reclaimed Message-ID: <244@eiffel.UUCP> Date: 16 Feb 90 20:26:22 GMT References: <1223@m3.mfci.UUCP> Distribution: comp Organization: Interactive Software Engineering, Santa Barbara CA Lines: 19 In <1223@m3.mfci.UUCP>, genly@bubble.multiflow.COM (Chris Hind Genly) asks: > A C function called 'alloc' is called to > allocate space for the array. Doesn't this prohibit the garbage > collector from knowing what type of data is kept in the array? If so > doesn't this cause objects referenced through only an array to be > collected as garbage?! No. Arrays are properly reclaimed by the garbage collector, and objects referenced directly or indirectly by array elements are handled correctly. -- -- Bertrand Meyer bertrand@eiffel.com