On Wed, May 23, 2012 at 7:10 AM, cm <xiao.ao.jiang.hu.cm@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