Updated to use datum->syntax.
svn: r8924
This commit is contained in:
parent
3f63c64d59
commit
77e7725571
|
@ -10,6 +10,7 @@
|
|||
#lang scheme/base
|
||||
|
||||
(provide cut cute)
|
||||
(require (for-syntax scheme/base))
|
||||
|
||||
; generate-names/exprs :
|
||||
; Given the arguments for the macro call to cut (or cute) as a syntax-list,
|
||||
|
@ -68,7 +69,7 @@
|
|||
(generate-names/exprs #'(slot-or-expr ...)
|
||||
(lambda (slot-names names-or-exprs . ignored)
|
||||
#`(lambda (x #,@slot-names)
|
||||
(x #,@(datum->syntax-object stx names-or-exprs)))))]
|
||||
(x #,@(datum->syntax stx names-or-exprs)))))]
|
||||
[(cut proc slot-or-expr ... <...>)
|
||||
;; Applying a wrong number of arguments to the the lamba generated by cut, will provoke an
|
||||
;; error caused by the application (proc ...). The quasisyntax/loc makes sure DrScheme
|
||||
|
|
Loading…
Reference in New Issue
Block a user