Add new `typechecker:called-in-tail-position' property.

svn: r9165
This commit is contained in:
Sam Tobin-Hochstadt 2008-04-04 17:33:55 +00:00
parent 307ca18d31
commit f7ec875386

View File

@ -445,7 +445,12 @@
;; esc
[c (compile-one vars (car blocks) esc)])
;; then compile the rest, with our name as the esc
(loop (cdr blocks) #'f (cons #'[f (lambda () c)] acc)))))])
(loop (cdr blocks)
#'f
(cons #`[f #,(syntax-property
#'(lambda () c)
'typechecker:called-in-tail-position #t)]
acc)))))])
(with-syntax ([(fns ... [_ (lambda () body)]) fns])
(let/wrap #'(fns ...) #'body)))))