From: Matt Armstrong Date: 2002-05-04T07:20:05+09:00 Subject: Re: restricted execution David Garamond writes: > python has rexec and perl similarly has the Safe module. how does > one do restricted execution in ruby? Ruby has the $SAFE variable which can be set to integers 0 thru 4 -- the higher the number the more things are restricted. It is like Perl's taint mode but with multiple levels of safety. There is nothing like Perl's Safe module where individual "opcodes" can be turned on and off. I'm not sure what Python's rexec provides. > also, if i want to hide some objects from the visibility from some > code living in the same process, how do i do this (since ruby has > ObjectSpace.each_object). As far as I know, you can't. -- Don't send mail to Jim.Dennis@hole.lickey.com The address is there for spammers to harvest.