guile-user
[Top][All Lists]
Advanced

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

Re: Injecting variables into closures.


From: Ludovic Courtès
Subject: Re: Injecting variables into closures.
Date: Thu, 29 Nov 2007 16:53:08 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

"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).

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

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

There's no R[56]RS-portable way to do this AFAIK.

Thanks,
Ludovic.





reply via email to

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