From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mildred Newsgroups: gmane.lisp.guile.user Subject: modify environments to make sandboxes Date: Mon, 12 Jun 2006 18:20:36 +0200 Message-ID: <20060612182036.2c989469@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1150129238 7612 80.91.229.2 (12 Jun 2006 16:20:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jun 2006 16:20:38 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 12 18:20:33 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fpp9Q-0005y6-L3 for guile-user@m.gmane.org; Mon, 12 Jun 2006 18:20:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fpp9Q-00048U-2v for guile-user@m.gmane.org; Mon, 12 Jun 2006 12:20:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fpp9L-000468-IO for guile-user@gnu.org; Mon, 12 Jun 2006 12:20:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fpp9J-00045r-2v for guile-user@gnu.org; Mon, 12 Jun 2006 12:20:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fpp9I-00045o-Tz for guile-user@gnu.org; Mon, 12 Jun 2006 12:20:20 -0400 Original-Received: from [212.27.42.36] (helo=smtp6-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FppI3-0005NN-P4 for guile-user@gnu.org; Mon, 12 Jun 2006 12:29:23 -0400 Original-Received: from localhost.localdomain (voi38-1-82-233-96-31.fbx.proxad.net [82.233.96.31]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5968622700 for ; Mon, 12 Jun 2006 18:20:19 +0200 (CEST) Original-To: guile-user@gnu.org X-Mailer: Sylpheed-Claws 2.1.0 (GTK+ 2.8.17; i486-pc-linux-gnu) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5346 Archived-At: Hi, I'm new to this mailing list and also new to the scheme language ... I'm used to Lua but I try to search about functionnal programming, and I found scheme. It looks like a good language but before using it in my projects I would like to know if tere is an easy way to create sandboxes. In lua, it is easy, you create a table containing functions ... and the table can be made environment for a function. So, you can easily create secure sandboxes by loading lua code from file and changing the environment of the loaded code. I do not know how to do that in scheme. Apparetly the function null-environment can return an environment and eval can evaluate some code in an environment. But the question is how to define a variable in an environment and also how to undefine a variable that you don't want to appear. I didn't found anything about modifying an environment. Is it possible ? If not, why not ? and is it possible to create sandboxes ? Thanks Mildred -- Mildred Clef GPG : ou Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B] _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user