From: ts Date: 2005-01-27T02:28:30+09:00 Subject: Re: When little languages grow... >>>>> "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. Guy Decoux