hash tables use incompatible with enum-next and enum-prev Amirouche Boubekki (20 Sep 2020 18:39 UTC)
Re: hash tables use incompatible with enum-next and enum-prev Wolfgang Corcoran-Mathe (20 Sep 2020 19:00 UTC)

Re: hash tables use incompatible with enum-next and enum-prev Wolfgang Corcoran-Mathe 20 Sep 2020 19:00 UTC

On 2020-09-20 20:38 +0200, Amirouche Boubekki wrote:
> It seems to me reading the specification that enum-next and enum-prev
> can not be implemented if the enum-type is using a hash-table.

The sample implementation stores both a vector and a SRFI 146 hashmap
in an enum type.  The vector is used for ordinal access and for the
sequential operations you mention, while the hashmap is used for lookup
by name.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>

"Quantum mechanics can be understood as the discovery that information
in nature is always finite." --Carlo Rovelli