Errata for bitvector-segment Wolfgang Corcoran-Mathe (19 Aug 2022 21:38 UTC)
Re: Errata for bitvector-segment John Cowan (19 Aug 2022 23:45 UTC)
Re: Errata for bitvector-segment Arthur A. Gleckler (20 Aug 2022 05:51 UTC)
Re: Errata for bitvector-segment Wolfgang Corcoran-Mathe (20 Aug 2022 14:21 UTC)
Re: Errata for bitvector-segment Arthur A. Gleckler (20 Aug 2022 15:45 UTC)
Re: Errata for bitvector-segment Arthur A. Gleckler (20 Aug 2022 15:46 UTC)
Re: Errata for bitvector-segment Wolfgang Corcoran-Mathe (20 Aug 2022 16:33 UTC)

Errata for bitvector-segment Wolfgang Corcoran-Mathe 19 Aug 2022 21:38 UTC

Hi all,

I noticed today that the SRFI leaves bitvector-segment's behavior
unspecified when its 'n' parameter is zero.  I think that this
should be an error; neither of the obvious alternatives
(return () or #f) make any sense to me.

SRFI 160 similarly leaves this unspecified.  Indeed, the sample
implementation for that SRFI runs forever when @vector-segment
is given a zero segment-length argument.

Since the SRFI 178 sample implementation of bitvector-segment
is a wrapper for u8vector-segment, it also goes off the rails.
I'll patch this to signal an error, if John agrees.

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