fix #%app check for error message on use of primitives
svn: r7831
This commit is contained in:
parent
aa266525dc
commit
cebdb136fe
|
@ -33,11 +33,11 @@
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
[(_ . body)
|
[(_ . body)
|
||||||
;; HACK: we disable all checks if #%app is not beginner-app
|
;; HACK: we disable all checks if #%app is not beginner-app
|
||||||
(not (module-identifier=? #'beginner-app (datum->syntax-object stx '#%plain-app)))
|
(not (module-identifier=? #'beginner-app (datum->syntax-object stx '#%app)))
|
||||||
(syntax/loc stx (tagged-impl . body))]
|
(syntax/loc stx (tagged-impl . body))]
|
||||||
[_
|
[_
|
||||||
;; HACK: see above
|
;; HACK: see above
|
||||||
(not (module-identifier=? #'beginner-app (datum->syntax-object stx '#%plain-app)))
|
(not (module-identifier=? #'beginner-app (datum->syntax-object stx '#%app)))
|
||||||
(syntax/loc stx tagged-impl)]
|
(syntax/loc stx tagged-impl)]
|
||||||
[(id . args)
|
[(id . args)
|
||||||
(syntax/loc stx (#%plain-app tagged-impl . args))]
|
(syntax/loc stx (#%plain-app tagged-impl . args))]
|
||||||
|
@ -99,11 +99,11 @@
|
||||||
(syntax-case s ()
|
(syntax-case s ()
|
||||||
[(_ . body)
|
[(_ . body)
|
||||||
;; HACK: see above
|
;; HACK: see above
|
||||||
(not (module-identifier=? #'beginner-app (datum->syntax-object s '#%plain-app)))
|
(not (module-identifier=? #'beginner-app (datum->syntax-object s '#%app)))
|
||||||
(syntax/loc s (tagged-impl . body))]
|
(syntax/loc s (tagged-impl . body))]
|
||||||
[_
|
[_
|
||||||
;; HACK: see above
|
;; HACK: see above
|
||||||
(not (module-identifier=? #'beginner-app (datum->syntax-object s '#%plain-app)))
|
(not (module-identifier=? #'beginner-app (datum->syntax-object s '#%app)))
|
||||||
(syntax/loc s tagged-impl)]
|
(syntax/loc s tagged-impl)]
|
||||||
[(_ new-arg ...)
|
[(_ new-arg ...)
|
||||||
(begin
|
(begin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user