max-char Bradley Lucier (25 Jan 2024 21:33 UTC)
Re: max-char John Cowan (26 Jan 2024 05:15 UTC)
Re: max-char Ray Dillinger (26 Jan 2024 23:28 UTC)
Re: max-char Antero Mejr (27 Jan 2024 20:51 UTC)
Re: max-char John Cowan (28 Jan 2024 07:17 UTC)
Re: max-char Ray Dillinger (29 Jan 2024 19:53 UTC)

Re: max-char Antero Mejr 27 Jan 2024 20:50 UTC

Ray Dillinger <xxxxxx@sonic.net> writes:

> On 1/25/24 13:33, Bradley Lucier wrote:
>> The definition of char-generator uses (make-random-integer-generator 0
>> max-char), where the upper bound is exclusive.  So you might want to have
>>
>>     (define max-char (cond-expand (full-unicode #x110000) (else 128)))
>
> For implementations that use unicode grapheme clusters as characters, how should
> they indicate that max-char is unbounded?

When porting the sample library to those implementations I would
probably remove max-char entirely, since char-generator would need to be
rewritten to support grapheme clusters anyway.