Opened 6 weeks ago

Last modified 5 days ago

#1734 new defect

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)

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

Download all attachments as: .zip

Change History (2)

Changed 6 weeks ago by Diego

Attachment: r7rs-bytevector.patch added

Fixes bytevector syntax in r7rs

comment:1 Changed 5 days ago by felix winkelmann

Milestone: someday5.3
Note: See TracTickets for help on using tickets.