Re: How to use-modules within macro?

2019-08-29 Thread pelzflorian (Florian Pelz)
On Thu, Aug 29, 2019 at 07:04:07PM -0400, Mark H Weaver wrote: > This approach is misguided and unnecessary. You don't need to include > 'use-modules' in your macro expansion, and it's best avoided. > :) I suspected I was doing something very wrong. > FYI, the way this works internally is tha

Re: How to use-modules within macro?

2019-08-29 Thread Mark H Weaver
Hi Florian, "pelzflorian (Florian Pelz)" writes: > I am writing a Guile macro to manipulate Scheme code and am stuck on > what I hope is a simple problem and it would be nice if you could > explain. I try: > > (define-syntax O > (lambda (x) > (syntax-case x () > ((_) >#`(beg

How to use-modules within macro?

2019-08-29 Thread pelzflorian (Florian Pelz)
Hello, I am writing a Guile macro to manipulate Scheme code and am stuck on what I hope is a simple problem and it would be nice if you could explain. I try: (define-syntax O (lambda (x) (syntax-case x () ((_) #`(begin (use-modules (ice-9 local-eval)) (local-ev