From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.user Subject: Re: Refactoring dynamic roots Date: Sat, 29 Jan 2005 08:04:50 +1100 Message-ID: <87acqtfeod.fsf@zip.com.au> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106947116 29508 80.91.229.6 (28 Jan 2005 21:18:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2005 21:18:36 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 28 22:18:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CudVa-0006VP-00 for ; Fri, 28 Jan 2005 22:18:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cudi1-00018c-0Z for guile-user@m.gmane.org; Fri, 28 Jan 2005 16:31:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cudh7-0000qV-H0 for guile-user@gnu.org; Fri, 28 Jan 2005 16:30:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cudgw-0000iT-7x for guile-user@gnu.org; Fri, 28 Jan 2005 16:30:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cudgq-0000e0-Ky for guile-user@gnu.org; Fri, 28 Jan 2005 16:30:04 -0500 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CudIW-0006vz-Dh for guile-user@gnu.org; Fri, 28 Jan 2005 16:04:57 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j0SL4tA6021958; Sat, 29 Jan 2005 08:04:55 +1100 Original-Received: from localhost (ppp20EA.dyn.pacific.net.au [61.8.32.234]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j0SL4rVT014958; Sat, 29 Jan 2005 08:04:54 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1CudIQ-0000Mc-00; Sat, 29 Jan 2005 08:04:50 +1100 Original-To: Marius Vollmer User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) 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: main.gmane.org gmane.lisp.guile.user:4179 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4179 Marius Vollmer writes: > > The other thing that dynamic roots do is to isolate changes to the > dynamic state. For example, calls to set-current-output-port or > fluid-set! have no effects outside of a dynamic root. This might be > useful when running arbitrary code since the caller can protect itself > from unexpected changes to the dynamic state. (This is not _that_ > useful for sandboxing code since the code can of course change the > global state of Guile arbitrarily unless other measures are taken.) I'm unsure about this bit. If you trust the code enough not to mangle global variables, can't you trust it enough not to mangle fluids too? _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user