Wrong result in the example of `temporarily`.
Zhu Zihao 30 Jul 2025 13:26 UTC
Hi, Schemers.
The specification says it use `temporarily` to simulate the
`parameterize` in Chez. However its given example doesn't get the same
result while running under Chez (with `temporarily` replaced by
`parameterize`)
```
Chez Scheme Version 10.2.0
Copyright 1984-2025 Cisco Systems, Inc.
> (let ([p (make-parameter 1 (lambda (x) (+ x 1)))])
(parameterize ([p 4]) (values))
(p))
3
```
The example says[1] it return 5, and the test[2] of SRFI-226 implementation
also expect the example to return 3.
Should we need an errata entry for it?
[1]: https://github.com/scheme-requests-for-implementation/srfi-226/blob/master/srfi-226.html#L2364
[2]: https://github.com/scheme-requests-for-implementation/srfi-226/blob/master/tests.sps#L1015
--
Retrieve my PGP public key:
执行下列命令以获取我的 PGP 公有密钥:
gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC
Zihao