[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reporting errors at macro-expansion time
Is there a good (read: appropriate) way to report errors to the user that
are detected at macro expansion time?
I'm thinking of something along the following lines:
(defmacro foo (x)
`(mumble (eval ,x)))
That is, the macro will detect an erronious argument (or some other problem)
at expansion time, and thus should do something appropriate, other than drop
into the debugger, maybe? I'm hoping there's something along the lines of
sys:read-error which I can't use here since I don't know the stream.
Brad Miller U. Rochester Comp Sci Dept.