Ramarren wrote:I have never seen the word "bareword" used before and am fairly certain that it has no Lisp-specific meaning, so what do you mean exactly?
Basically "not a keyword". I tried to explain that with my two code examples.
Ramarren wrote:You seem to be missing a point of macros.
No, I don't
I just have next to no experience writing them and these are some of the issues I'm running into.
findinglisp wrote:As long as the compiler/interpreter never gets to the point where it actually tries to compile/interpret the FOR or IN forms, there is not a problem.
Ramarren wrote:Macro is a function on source code, and so the symbols are passed as is, and not evaluated. In any case using keywords in function namespace wouldn't help anyway, as ":for" in not a function any more than "for".
This is where I was having problems. However a simple test-case shows it to be as simple as you guys write:
- Code: Select all
(defmacro test (&rest args)
(dolist (arg args)
(format t "~S, ~S~%" (type-of arg) (symbol-name arg))))
CL-USER(15): (test a b c d)
So, I have no idea where it went wrong with the macro I was working on. I don't have it at hand at the moment though