Summary
r7rs bytevector syntax incorrectly reads second passed expression as bytevector body
Metadata
- Id: e3d4d9e8594add89cb9d03238018cb4e7a775b67
- Trac id: 1734
- Type: defect
- Reporter: dieggsy
- Owner:
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty: trivial
- Resolution: fixed
- Priority: major
- Milestone: 5.3
- Version: 5.2.0
- Changetime: 2021-07-12 16:00:23 UTC
- Created: 2021-03-14 22:12:40 UTC
- Keywords: r7rs
Attachments
- e3d4d9e8594add89cb9d03238018cb4e7a775b67/attachments/r7rs-bytevector.patch
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.
Changes and comments
[2021-03-14 22:12:57 UTC] dieggsy attached r7rs-bytevector.patch (description=Fixes bytevector syntax in r7rs)
[2021-04-18 11:22:47 UTC] felix changed milestone from someday to 5.3
[2021-07-12 16:00:23 UTC] sjamaan changed status from new to closed
[2021-07-12 16:00:23 UTC] sjamaan set resolution to fixed
[2021-07-12 16:00:23 UTC] sjamaan wrote:
Fixed with r40275 / version 1.0.5