guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refactoring dynamic roots


From: Kevin Ryde
Subject: Re: Refactoring dynamic roots
Date: Sat, 29 Jan 2005 08:04:50 +1100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Marius Vollmer <address@hidden> 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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]