Re: Macro shadows everything in lexical environment

2024-09-29 Thread Damien Mattei
it will be hard to make it work, perhaps with syntax features... i find this variant that works at REPL and only : scheme@(guile-user)> (define-syntax foo-macro (syntax-rules () ((_ id) (define id (create-id-procedure id) (define (create-id-procedure id) (define temp id) (d

Macro shadows everything in lexical environment

2024-09-28 Thread Adam Vagapov
Hi everyone! I am currently in the process of writing macros for shortening some common idioms I use in my Guile code. One thing I am struggling to do is to take an identifier that already exists in the current lexical environment, and augment it by generating a new macro in the lexical envi