Summary

r7rs bytevector syntax incorrectly reads second passed expression as bytevector body

Metadata

Attachments

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