On Tue, 16 Aug 2005 19:46:29 +0300, Yuval Kogman <[EMAIL PROTECTED]> wrote:
[...] > On Tue, Aug 16, 2005 at 05:32:50 -0000, David Formosa (aka ? the Platypus) = > wrote: >> > This is getting me thinking though: >> >=20 >> > $*RUNTIME.Memory.GarbageCollector.dispose($object); # force it, >> > # even if it should be alive >>=20 >> Isn't that what we have undefine(...) for? > > > No: > > my Dog $spot .=3D new; > my $spot_II =3D $spot; # another reference > $*RUNTIME.Memory.GarbageCollector.dispose($spot); In the GC API this would be sub GC::dispose (Any $thing is rw,+Bool $recursive=Bool::false --> Int) {...} And also thinking about it. sub GC::size (Any $thing,+Bool $recursive=Bool::false --> Int) {...} Use the GC to sweep accross an object and tell you the size of the object in memory. -- Please excuse my spelling as I suffer from agraphia. See http://dformosa.zeta.org.au/~dformosa/Spelling.html to find out more. Free the Memes.