chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#1734: r7rs bytevector syntax incorrectly reads second passed expression


From: Chicken Trac
Subject: #1734: r7rs bytevector syntax incorrectly reads second passed expression as bytevector body
Date: Sun, 14 Mar 2021 21:12:40 -0000

#1734: r7rs bytevector syntax incorrectly reads second passed expression as
bytevector body
--------------------------------+------------------------
            Reporter:  dieggsy  |       Type:  defect
              Status:  new      |   Priority:  major
           Milestone:  someday  |  Component:  extensions
             Version:  5.2.0    |   Keywords:  r7rs
Estimated difficulty:  trivial  |
--------------------------------+------------------------
 On `(import r7rs)`, something like `#f32(1.0 2.0)` doesn't work - the
 syntax instead ignores the first passed expression, and uses the
 //second// expression as the vector body. So you have to do something
 pretty weird like `#f32()(1.0 2.0)` for this to work.

 Indeed, `read-srfi-4-vector` in the file `r7rs.scm` seems to have an extra
 call to `read`. The attached (completely trivial) patch should fix this.

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1734>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]