This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Question about macros.
- To: guile at sourceware dot cygnus dot com
- Subject: Question about macros.
- From: Janis Dzerins <jonis at mt dot lv>
- Date: Fri, 14 Jan 2000 17:21:03 +0200 (EET)
I want to make a macro that would create a variable in top level
environment. The only solution that works for me now is this:
(defmacro make-v (name init) `(eval (define ,name ,init)))
Is there any other way (more correct) to do this? Using eval does not
seem quite right to me...
(As I understand, (defmacro make-v (name init) `(define ,name ,init)))
would create that variable in macro's environment, right?)
BTW, I noticed that paren matching has slowed down dramatically and is
performed when I paste text with mouse into terminal (I'm using
gnome-terminal).
--
jonis
Herth's Law:
He who turns the other cheek too far gets it in the neck.