On Sun, Jun 8, 2008 at 9:45 AM, Helmut Eller heller@common-lisp.net wrote:
C supports a #line directive which tells the compiler that the source location isn't in the file that compiler reads but somewhere else. Tools like Yacc use this to instruct the C compiler to generate error messages for the yacc source file rather than the intermediate C file.
Is/was there a Lisp or Scheme compiler that supports something similar?
SBCL has (and uses) SB-C:SOURCE-LOCATION, which has a compiler-macro that transforms it to the current source location.
Cheers,
-- Nikodemus