[Top][All Lists]

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

Re: Injecting variables into closures.

From: Kjetil S. Matheussen
Subject: Re: Injecting variables into closures.
Date: Thu, 29 Nov 2007 19:43:13 +0100 (CET)

Ludovic Court?s:


"Kjetil S. Matheussen" <address@hidden> writes:

Now I wonder, is this safe and portable? Or are there
other and better ways to do this?

Neither `define-macro' nor `procedure->macro' is portable: both are
Guile-specific (SCM may have similar forms, though).

Thanks, but by "portable", I did (of course) mean portable
across various versions of Guile, not any of the scheme

Another, simpler, Guile-specific way to do this would be:

 (module-define! (current-module) 'gakk 'some-value)

Thanks, but that's probably not enough for what I
want to do. I need to simulate dynamic scoping
somehow, and I think its only possible to do that
by manipulating the environment. But I'm not
going to do that if its going to break with
forthcoming releases of Guile.

reply via email to

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