Created
May 28, 2018 04:08
-
-
Save lokedhs/531ac436c509b345aeb60fd7ee96c4f1 to your computer and use it in GitHub Desktop.
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
(defmacro defmfun (function &body rest &aux .n.) | |
(cond ((and (car rest) (symbolp (car rest))) | |
;;old maclisp narg syntax | |
(setq .n. (car rest)) | |
(setf (car rest) | |
`(&rest narg-rest-argument &aux (, .n. (length narg-rest-argument)))))) | |
`(progn | |
;; I (rtoy) think we can consider all defmfun's as translated functions. | |
(defprop ,function t translated) | |
(defun ,function . ,rest))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment