On Aug 19, 2008, at 11:38 AM, Shugo Maeda wrote:

>
> In trunk, (2) objects created by untrusted code are tainted and  
> untrusted,
> and modificaions of trusted objects are not allowed at safe level 4.

Shugo:

Thanks for the explanation. What does it mean when you say "objects  
created by untrusted code are tainted and untrusted?" I tried:

dave[RUBY3/Book 11:04:03*] irb
irb(main):001:0> class Dave;end
=> nil
irb(main):002:0> Dave.untrust
=> Dave
irb(main):003:0> d = Dave.new
=> #<Dave:0x108cf4>
irb(main):004:0> d.untrusted?
=> false
irb(main):005:0> d.tainted?
=> false


Is there an example of a sandbox that uses trust?


Dave