Re: [racket-users] Strip the lexical context from an identifier

2019-02-23 Thread Stefano Lande
1 2) > > ;; 2 > > > > (define x 3) > > ((my-macro x) 1 2) > > ;; 3 > > > > > > > > -Sam > > > > * well, I think that's what's going on. > > > > On Fri, Feb 22, 2019 at 1:21 PM Matthias Felleisen < > m

[racket-users] Strip the lexical context from an identifier

2019-02-22 Thread Stefano Lande
Dear all, first of all, I might being misusing the terminology. Sorry about it. I would like to write a macro that gets an identifier and return its value in the new lexical scope created by the macro. For example: > (define-syntax (my-macro stx) (syntax-parse stx [(_ x:id) #'(lambda (