[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic variable binding
From: |
Ludovic Courtès |
Subject: |
Re: Dynamic variable binding |
Date: |
Wed, 12 Nov 2008 23:05:34 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Hello!
Sebastian Tennant <address@hidden> writes:
> What exactly happens when you 'define' a symbol?
In Guile (non-portable) terms, "(define foo 'bar)" is equivalent to:
(module-define! (current-module) 'foo 'bar)
or, at a lower-level:
(module-add! (current-module) 'foo (make-variable 'bar))
But, just like "`eval' is evil", run-time symbol definition doesn't
sound right. Surely, there are other ways that you could use to solve
your problem more elegantly.
Thanks,
Ludo'.