Forum: Ruby Re: Deleting objects?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Gennady B. (Guest)
on 2006-02-15 23:10
(Received via mailing list)
If you keep a reference to an object -- no way you can dispose it. On
the other hand, even when there's no references, Ruby will dispose an
object on its own will (and need). You can try calling GC.start, however
it is not guraranteed that unreferenced objects will be disposed
immediatelly (it always worked for me, though).

Gennady.
This topic is locked and can not be replied to.