From: ts Date: 2001-01-10T22:48:41+09:00 Subject: [ruby-talk:9039] Re: Sandbox (again) >>>>> "C" == Clemens Wyss writes: Try C> context = Context.new C> eval( C> "print ('hello') C> class A C> def initialize C> ObjectSpace.define_finalizer(self, proc{|id| C> print \"\nfinal #{id}\"}) C> end def toto print ('toto') end C> end C> a = A.new", context.context) a = A.new.toto", context.context) Guy Decoux