Wrong result in the example of `temporarily`. Zhu Zihao (30 Jul 2025 14:37 UTC)
Re: Wrong result in the example of `temporarily`. Marc Nieper-Wißkirchen (31 Jul 2025 11:48 UTC)
Re: Wrong result in the example of `temporarily`. Arthur A. Gleckler (02 Aug 2025 05:48 UTC)

Re: Wrong result in the example of `temporarily`. Marc Nieper-Wißkirchen 31 Jul 2025 11:48 UTC

Hi,

Am Mi., 30. Juli 2025 um 16:37 Uhr schrieb Zhu Zihao <xxxxxx@163.com>:
>
> 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.

Thanks for finding this mistake. Indeed, it should say that the
example returns "3".

Would you be so kind and provide a pull request?

Thanks again,

Marc

>
> 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