[CM] Bug in read

Woody Douglass wdouglass at carnegierobotics.com
Fri Jan 21 12:48:20 PST 2022


All,

I may have found a bug in `read`

consider the following

```
(define (strtest)
    (let* ((num "#xff")
           (in (open-input-string "#xff"))
           (val (read in)))
       (= (port-position in) (length num))))
```

(strtest) defined above returns #f, i think it should return #t
I think reader macros are increasing port-position to what the position
would be post-macro, not pre-macro

Has anyone seen this?

Thanks,
Woody Douglass




More information about the Cmdist mailing list