|
|
Darren New <dne### [at] sanrrcom> wrote:
> You can, of course. You're just reference counting whether the Listener
> is "alive" rather than whether the memory is still allocated.
> Do all the same stuff, but maintain the reference counter yourself.
> (This can, of course, be difficult, if your language doesn't support
> automatically doing something when a pointer to an object leaves its scope.)
Can you mention some popular GC's languages where it's possible to
implement reference-counting of objects? AFAIK in Java it's not possible
(because there's no way for the object to detect if a reference to it
is copied or destroyed).
--
- Warp
Post a reply to this message
|
|