Re: Reference implementation attempts to mutate possibly immutable hash table.
Zhu Zihao 11 Jul 2025 20:16 UTC
Repost to SRFI mail-list because I forget to add Cc before.
Zhu Zihao <xxxxxx@163.com> writes:
> Marc Nieper-Wißkirchen <xxxxxx@gmail.com> writes:
>
>> It seems that only one of the versions of `make-hash-table` is
>> deprecated in SRFI 125.
>
> I should read the spec more carefully :)
>
>> Have you tried replacing `(hash-table variable-comparator)` by
>> `(make-hash-table variable-comparator)`?
>
> Yes, this works
>
> ```
> xxxxxx@(guile-user)> ,use (srfi srfi-165 test)
> xxxxxx@(guile-user)> (run-tests)
> %%%% Starting test SRFI 165 (Writing full log to "SRFI 165.log")
> value: value: # of expected passes 43
> $1 = #<test-runner pass-count: 43 fail-count: 0 xpass-count: 0 xfail-count: 0 skip…>
> ```
>
> BTW, I see a PR at https://github.com/scheme-requests-for-implementation/srfi-165/pull/5
>
> jimrees reported this issue before (though their report are not
> very detailed). If we need some patch to fix this, I would suggest taking
> their contribution.
--
Retrieve my PGP public key:
执行下列命令以获取我的 PGP 公有密钥:
gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC
Zihao