From: ts Date: 2003-07-30T00:10:29+09:00 Subject: Re: Singletons as globals and GC >>>>> "B" == Ben Giddings writes: B> class Worker1 B> def doStuff B> @stats = Stats.instance # The instance of the stats singleton is created svg% cat b.rb #!/usr/bin/ruby require 'singleton' class Stats include Singleton end p Stats.instance Stats.instance_eval { p @__instance__} svg% svg% b.rb # # svg% the instance is a class instance variable, because the class Stats will be not removed, the instance will be marked when the GC run Guy Decoux