[gambit-list] Is there a low level hack to define global macros?
Jörg F. Wittenberger
Joerg.Wittenberger at softeyes.net
Sat Apr 11 14:09:12 EDT 2020
Hi Marc,
(guess this goes only for you ;-)
While I wonder how I'd teach gambit to understand `define-values` in
the repl (see other message)...
There is this low level hack (helpful so far while too lazy to ask) to
define new global variables at runtime:
(define (doDEFINE! x v)
(##make-global-var x)
(##global-var-set! x v))
(doDEFINE! 'result 42))
result
42
How would I define a macro (not evaluation arguments) at runtime instead
of a procedure? Possible?
Thanks
/Jörg
More information about the Gambit-list
mailing list