guile-user
[Top][All Lists]
Advanced

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

Re: define - any name


From: Egil Moeller
Subject: Re: define - any name
Date: Mon, 21 Apr 2003 19:22:22 +0200 (CEST)

After some digging in the not-so-very-good guile documentation, I found
local-eval. That's a good one. And it solves my problem fine:

guile> (define
  quasieval
  (procedure->macro
   (lambda (code env)
     (local-eval (list 'quasiquote (cdr code)) env))))
guile> (define y 'foo)
guile> (quasieval define ,y 'zzg)
guile> foo
zzg
guile>


Hm, how do one submit an SRFI? I think my quasieval could be of use by
others too, if it does not allready exist somewhere out there...

-- 
http://redhog.org
GPG Public key: http://redhog.org/PGP%20Public%20key.asc
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!





reply via email to

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