in lazy/lazy.rkt:

- remove all stepper hints and properties
- change !*app to use application instead of let
  (stepper has difficulty with temp vars of let)
This commit is contained in:
Stephen Chang 2011-04-01 17:14:55 -04:00
parent ca4ea39123
commit 89d1a1feb0

View File

@ -200,7 +200,8 @@
(define-syntax (hidden-! stx)
(syntax-case stx (!)
[(_ arg) (stepper-syntax-property #'(! arg) 'stepper-skipto
[(_ arg) (syntax/loc stx (! arg))
#;(stepper-syntax-property #'(! arg) 'stepper-skipto
(append skipto/cdr skipto/second))]))
(define-syntax (!*app stx)
@ -223,7 +224,10 @@
(with-syntax ([lazy (syntax/loc stx (p y ...))]
[strict (syntax/loc stx (p (hidden-! y) ...))])
(quasisyntax/loc stx
(let ([p f] [y x] ...)
((lambda (p y ...)
(if (lazy? p) lazy strict))
f x ...)
#;(let ([p f] [y x] ...)
;; #,($$ #`(if (lazy? p) lazy strict))
(if (lazy? p) lazy strict))))))]))