Previous: Diagnostic Severity, Up: Diagnostic Messages


3.1.3 Understanding Compile Diagnostics

The messages emitted by the compiler contain a lot of detail in a terse format, so they may be confusing at first. The messages will be illustrated using this example program:

     (defmacro zoq (x)
       `(roq (ploq (+ ,x 3))))
     
     (defun foo (y)
       (declare (symbol y))
       (zoq y))

The main problem with this program is that it is trying to add 3 to a symbol. Note also that the functions roq and ploq aren't defined anywhere.