This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Question about macros.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]