Created
February 2, 2015 13:01
-
-
Save artyom-poptsov/3bfeabb2ddaede52b7f7 to your computer and use it in GitHub Desktop.
define-method*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; define*-like macro that allows to use keywords with GOOPS' | |
;; define-method. | |
(define-syntax define-method* | |
(syntax-rules () | |
((_ (m (o <class>) (var defval) ...) body ...) | |
(define-method (m (o <class>) . args) | |
(let-keywords args #t ((var defval) ...) | |
body ...))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment