- Code: Select all
(defmacro my-macro (name param1 param2)
(let ((struct1 (symb name 'const1))
(struct2 (symb name 'const2)))
(generate-method1 struct1 struct2 param1 param2)
(generate-methodn struct1 struct2 param1 param2)))
Does this make sense? Part of the reason I want to do it this way is that I want to encode some information that could be in the structs, but would be constant among many instances, into the definitions of the methods as constants. I think the big problem I have is in understanding where backquotes and commas and everything need to be.
If what I'm saying doesn't make sense, I'll try to clarify.