This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Defining functions to be exported
- To: guile at sourceware dot cygnus dot com
- Subject: Re: Defining functions to be exported
- From: Chris Cramer <crayc at kiwi dot pyro dot net>
- Date: Wed, 17 May 2000 14:05:36 -0500
- References: <20000515102347.A29888@e503.hadiko.de>
On Mon, May 15, 2000 at 10:23:47AM +0200, Manuel Odendahl wrote:
> Hello,
>
> i am working on a tiny stupid scheme project, but id like to have non
> trusted user executing guile scripts on an irc bot, without these
> scripts having access to iternal functions (like bot-die for example).
> How could this be achieved in a simple manner (one could still rewrite
> eval :) ?
> I didn't find nothing in the docs about such a thing, but well, i havent
> read sources yet...
The easiest way to do this right now is to scan through any code you want
to run and check for functions you don't want the code to use... which
is isn't especially easy. First class environments are supposed to help
with this, but we're still waiting for them.
--
C. Ray C. aka Christopher Cramer
crayc@pyro.net
http://www.pyro.net/~crayc/