octobanana
home
blog
Macros in Common Lisp
Programming A Fuzzy Time Function
Ha Ling Peak In The Clouds
created: Wed 23 Jan 2019
updated: Tue 30 Jul 2019
post
12 nods
2 comments
#octobanana
5 years ago
c8b94eea
@cd4310f4 Thanks for the tip! I also removed the redundant progn.
progn
1 2 3 4 5 6 7 8 9 10
@@ -1,6 +1,7 @@ (defmacro deffun (name params &body body) (let ((var (surround-with-asterisks name))) - `(progn (defvar ,var + `(defvar ,var '(defun ,name ,params ,@body)) - (eval ,var)))) + `(defun ,name ,params + ,@body)))
anon
cd4310f4
just put the code again after the DEFVAR. No need for EVAL...
#octobanana
5 years ago
c8b94eea
@cd4310f4 Thanks for the tip! I also removed the redundant
progn
.1 2 3 4 5 6 7 8 9 10
anon
5 years ago
cd4310f4
just put the code again after the DEFVAR. No need for EVAL...