From: wys@... (Clemens Wyss) Date: 2001-01-11T15:20:55+09:00 Subject: [ruby-talk:9110] Re: Sandbox (again) looks like (once again) a ruby-talk answer didn't make its way into clr. ts wrote a response to my eval-context(-print) question: >>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) ...and as expected the print('toto') didn't make use of the overloaded print method neither. What am I missing here? Coming back to a question I raised on monday([ruby-talk:8834]): How can I fetch/redirect all ouput made (ie print, p , put(s)) in an eval call? Clemens