On Mon 05 Jul 2010 21:18, Neil Jerram <n...@ossau.uklinux.net> writes:
> ri...@happyleptic.org writes: > >> (define (hook-helper %s) (lambda () #\t)) >> >> where %s is the long list of parameters (foo bar baz...) that's inserted by >> the C program. >> And : >> >> (define (hook . args) (local-eval (cons print-user-fields user-fields) >> (procedure-environment (apply hook-helper args)))) > > Using local-eval and procedure-environment like this won't work in Guile > 1.9/2.0, I believe. > > But you could get a similar effect - which I think will still work in > 1.9/2.0 - by creating a module, defining values in it, and then > evaluating in that module. (In Guile, module == top level > environment.) Yes, I think this is the best option, too. FWIW anyway :) Andy -- http://wingolog.org/