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]

Re: eval inside let


Ceri Storey writes:

 > I'd guess i'm missing something here. Any help would be much appreciated.

`local-eval' takes two args, the first an expression and the second a
macro that references the environment to be considered "local".  at
least, this is what i get from reading libguile/debug.c... anyway, try:

  (let ((foo 'bar)) (local-eval (display foo) the-environment))

note that you don't need to quote the first arg.  (hmm, when i use a
quote, guile seems to hang -- does anyone else see this?)

thi

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