improve the 'method' syntax error so it gives a hint which argument is which
This commit is contained in:
parent
ad2e8ac54e
commit
e7c6222142
|
@ -14,8 +14,8 @@
|
|||
constructor-tag
|
||||
name-this-object)
|
||||
|
||||
(define-syntax-rule (method a b)
|
||||
(*method 'b (quote-syntax a)))
|
||||
(define-syntax-rule (method class/interface method-name)
|
||||
(*method 'method-name (quote-syntax class/interface)))
|
||||
|
||||
(define-syntax-rule (xmethod a b)
|
||||
(elem (method a b) " in " (racket a)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user