Opened 4 years ago
Closed 4 years ago
#1734 closed defect (fixed)
r7rs bytevector syntax incorrectly reads second passed expression as bytevector body
Reported by: | Diego | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 5.3 |
Component: | extensions | Version: | 5.2.0 |
Keywords: | r7rs | Cc: | |
Estimated difficulty: | trivial |
Description
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.
Attachments (1)
Change History (3)
Changed 4 years ago by
Attachment: | r7rs-bytevector.patch added |
---|
comment:1 Changed 4 years ago by
Milestone: | someday → 5.3 |
---|
comment:2 Changed 4 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with r40275 / version 1.0.5
Note: See
TracTickets for help on using
tickets.
Fixes bytevector syntax in r7rs