Opened 3 years ago

Closed 3 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


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)

r7rs-bytevector.patch (814 bytes) - added by Diego 3 years ago.
Fixes bytevector syntax in r7rs

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by Diego

Attachment: r7rs-bytevector.patch added

Fixes bytevector syntax in r7rs

comment:1 Changed 3 years ago by felix winkelmann

Milestone: someday5.3

comment:2 Changed 3 years ago by sjamaan

Resolution: fixed
Status: newclosed

Fixed with r40275 / version 1.0.5

Note: See TracTickets for help on using tickets.