Re: [Chicken-users] importing a syntactic binding for level -1

2019-07-13 Thread Peter Bex
On Sat, Jul 13, 2019 at 02:12:48PM +0200, Marco Maggi wrote: > Peter Bex wrote: > > > This won't work. "rename" is operating in the syntactic environment > > of the transformer. You can pass it as a procedure to some other module, > > but that won't change its internal state. > > So, is RENAME

Re: [Chicken-users] importing a syntactic binding for level -1

2019-07-13 Thread Marco Maggi
Peter Bex wrote: > This won't work. "rename" is operating in the syntactic environment > of the transformer. You can pass it as a procedure to some other module, > but that won't change its internal state. So, is RENAME closed upon the environment in which ER-MACRO-TRANSFORMER is called? So

Re: [Chicken-users] importing a syntactic binding for level -1

2019-07-13 Thread Peter Bex
On Sat, Jul 13, 2019 at 08:26:56AM +0200, Marco Maggi wrote: > I would like to write such macro as: > > (import (scheme) > (chicken fixnum)) > (import-for-syntax (scheme) >(only (chicken syntax) > er-macro-transformer) >

[Chicken-users] importing a syntactic binding for level -1

2019-07-13 Thread Marco Maggi
Ciao, it is my understanding that, if I write a macro as follows: (import (scheme) (chicken fixnum)) (import-for-syntax (scheme) (only (chicken syntax) er-macro-transformer)) (define-syntax spiffy (er-macro-transformer (lambda