From: Hugh Sasse Staff Elec Eng Date: 2005-01-27T03:21:25+09:00 Subject: Re: When little languages grow... On Thu, 27 Jan 2005, why the lucky stiff wrote: > Hugh Sasse Staff Elec Eng (hgs@dmu.ac.uk) wrote: [...] >> So the next possibility is to use something like >> >> input = nil >> File.open("input.txt"){|f| >> input = f.read >> } >> Thread.new(input){|source| >> $SAFE=5 >> instance_eval source >> }.value >> >> or something, and actually make the commands in the language methods >> of some Ruby object. > > I hear ya. I wish there was a way to open a jailed namespace. It'd be > like chroot'ing into a module. The sandbox module would be addressable > from ::Object, but would only include a limited set of modules when > offered under chroot. That's a nice metaphor... > > _why > [I'll have to explore that RedHanded site a bit more too1 :-)] Hugh