[Ecls-list] how to get the line number of code from error message!
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Fri May 25 21:41:55 UTC 2012
On Wed, May 23, 2012 at 7:10 AM, cm <xiao.ao.jiang.hu.cm at gmail.com> wrote:
> ;;; Loading "D:/ECL/code/hello.lisp"
>
> "hi"
> Condition of type: SIMPLE-READER-ERROR
> Reader error in file #<input stream #P"D:/ECL/code/hello.lisp">, position
> 30:
> Too many objects after a list dot
Unfortunately, ECL's streams do not keep line number information. I do not
see how it could be done without adding a significant overhead on the I/O
routines. An alternative would be to adopt Pascal's solution: count the
number of newlines up to that position only when the error is output.
Juanjo
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120525/2ccfe349/attachment.html>
More information about the ecl-devel
mailing list