From: Joel VanderWerf Date: 2004-05-26T08:13:25+09:00 Subject: Re: $SAFE idiom (Re: defining condititions) nobu.nokada@softhome.net wrote: > You don't need save $SAFE, which is always thread local. And, > Proc also preserves its $SAFE value. Though this was an > unofficial feature in 1.6, guaranteed from 1.8. Hm. Didn't know that. Also, methods preserve $SAFE: def foo; $SAFE=3; end # => nil $SAFE # => 0 foo # => 3 $SAFE # => 0