PasteRack.org
Paste # 85576
2017-04-16 12:45:08

Fork as a new paste.

Paste viewed 110 times.


Embed:

  1. #lang racket
  2. (require (for-syntax syntax/parse))
  3.  
  4. (define-syntax (test stx)
  5.   (syntax-parse stx
  6.     [(_ ex)
  7.      (with-syntax ([z (datum->syntax stx 'z)])
  8.        #'(define z ex))]))
  9.  
  10. (test 0)
  11. z

=>

0