[plt-scheme] ports, make-srcloc and recursive reads

From: Dimitris Vyzovitis (vyzo at media.mit.edu)
Date: Mon Apr 23 21:28:39 EDT 2007

make-srcloc expects non-negative exact integers (or #f) for line, col,
pos, and span. However, (string) ports *can* return such things as 0,
causing the reader to fail in a wrong way.

> (read/recursive (open-input-string ";") #\. #f)
make-srcloc: expected argument of type <exact positive integer or #f>; given 0

-- vyzo

Posted on the users mailing list.