Summary
srfi-42: append-ec fails when apply limit is reached
Metadata
- Id: 3f50cbebaa30beb9c39c5c5be2e13b5413c59a23
- Trac id: 1174
- Type: defect
- Reporter: acharlton
- Owner: iraikov
- Cc: ivan.g.raikov@gmail.com
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone: someday
- Version: 4.9.x
- Changetime: 2015-08-27 18:35:16 UTC
- Created: 2014-12-17 20:28:02 UTC
- Keywords: srfi-42
Attachments
- 3f50cbebaa30beb9c39c5c5be2e13b5413c59a23/attachments/srfi-42-append-ec.patch
Description
Which causes simple operations like this to fail:
(append-ec (: i 10000)
(list i i))
Attached is a patch that fixes this issue.
This issue is also present in string-append-ec, but a similar, reasonably efficient fix would involve adding a dependancy of some sort. Probably the easiest way would be to use srfi-13 and replace (apply string-append ...) with (string-concatenate ...)
Changes and comments
[2014-12-17 20:28:20 UTC] acharlton attached srfi-42-append-ec.patch (description=#f)
[2015-08-27 09:23:13 UTC] sjamaan wrote:
Should be fixed with #1098, but the attached patch might also do the trick. Ivan, can you take a look at the patch?
[2015-08-27 18:35:16 UTC] iraikov changed status from new to closed
[2015-08-27 18:35:16 UTC] iraikov set resolution to fixed
[2015-08-27 18:35:16 UTC] iraikov wrote:
It looks like I had applied the patch and made a new release back in December, but I had forgotten to close this ticket.