$SAFE block?

Hi sir Mauricio (aka Mauricio Fernández [mailto:batsman.geo@yahoo.com]):

You expounded last Wednesday, December 18, 2002 6:12 PM:


You can write it yourself:

cool quick code -like batsman :slight_smile:
I’ve archived this quick hack in my ruby arc…

batsman@tux-chan:/tmp$ cat b.rb

module Kernel
def safe(level, &block)
thread = Thread.new {
$SAFE = 4

minor correction ^^^^^^^ $SAFE = level

kind regards -botp