[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02126] Re: load "file", true

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-24 07:21:54 UTC
List: ruby-talk #2126
Hi,

In message "[ruby-talk:02124] load "file", true"
    on 00/03/24, ts <decoux@moulon.inra.fr> writes:

| The manual say :
|
|load(file[, priv]) 
|[...]
|       If the optional argument priv is true, loading and evaluating is
|       done under the unnamed module, to avoid global name space pollution.

| What is its use ? How can I access the new classes created ?

Things like untrusted applets.  E.g.

  f=open(file,"w");
  f.print ...   # write untrusted program into file.
  f.close
  Thread.start {
    $SAFE = 4;
    load(file,true)
  }

In This Thread

Prev Next