We define a structure like this way
(defstruct point
x
y)
Then we get a function point-p
It seems easy to define a macro
(defmacro mac (fun-name)
`(defun ,fun-name ()
t))
But how can I add "-p" as a suffix on fun-name ?
I think it may be something like
(defmacro mac (fun-name)
`(defun ,(suffix ,fun-name) ()
t))
suffix may be a function.
So how in fact can I implement this ?