syntax/parse: vars w/ splicing-stxclasses bind stxobjs, not lists

This commit is contained in:
Ryan Culpepper 2010-12-09 02:55:30 -07:00
parent 6acf9b6e00
commit c51f769672

View File

@ -99,11 +99,12 @@
(require syntax/stx)
(define (stx-list-take stx n)
(let loop ([stx stx] [n n])
(if (zero? n)
null
(cons (stx-car stx)
(loop (stx-cdr stx) (sub1 n))))))
(datum->syntax #f
(let loop ([stx stx] [n n])
(if (zero? n)
null
(cons (stx-car stx)
(loop (stx-cdr stx) (sub1 n)))))))
;; stx-list-drop/cx : stxish stx nat -> (values stxish stx)
(define (stx-list-drop/cx x cx n)