[Larceny-users] Syntax violations need &syntax
Derick Eddington
derick.eddington at gmail.com
Wed Mar 18 19:26:45 EDT 2009
On Wed, 2009-03-18 at 16:01 -0700, Derick Eddington wrote:
> Per R6RS 5.5 "Syntax violations", the below exceptions must have a
> condition with type &syntax.
This also (same for syntax-rules):
> (show-ex (let-syntax ((sc (lambda (stx)
(syntax-case stx ()
((_ x) #'x)))))
(sc)))
Syntax violation: sc
Invalid form
Form: (sc)
Trace:
(sc)
(lambda ()
(let-syntax
((sc (lambda (stx) (syntax-case stx () ((_ x) #'x)))))
(sc)))
((lambda ()
(let-syntax
((sc (lambda (stx) (syntax-case stx () ((_ x) #'x)))))
(sc))))
((#<record &error> ())
(#<record &who> (syntax-violation))
(#<record &message> ("sc: Invalid form"))
(#<record &irritants> (((sc)))))
>
--
: Derick
----------------------------------------------------------------
More information about the Larceny-users
mailing list