From: Dave Burt Date: 2005-01-27T11:25:55+09:00 Subject: Re: When little languages grow... "ts" wrote: >>>>>> "H" == Hugh Sasse Staff Elec Eng writes: > > H> Thread.new(input){|source| > H> $SAFE=5 > H> instance_eval source > H> }.value > > Sorry to say this but this is the most common error that I see when > someone try to eval some code with $SAFE >= 4 > > The code will be eval'ed with $SAFE >= 4 but the result (#value) will be > used with $SAFE = 0 and you can have problems. > > The result of #eval must be cleaned with $SAFE >= 4, before it's > returned. Hi, I'm having trouble understanding what you mean by this. Can you say it in Ruby? Cheers, Dave