Re: Proposed solution to the "predetermined states" problem
Peter McGoron 03 Jun 2026 15:04 UTC
On 5/24/26 13:14, Wolfgang Corcoran-Mathe wrote:
> Unfortunately, the SRFI's claim that a portable implementation is
> impossible remains true: most of SRFI 271 be implemented with
> 'make-custom-binary-input-port', but not the 'random-port-state'
> accessor. So close!
Wouldn't this be implementable with a custom `get-position` in
`make-custom-binary-input-port`? Then `random-port-state` is just
`port-position`. (In a sense, a state *is* the position of the port,
it's just not an integer. R6RS explicitly supports such a scenario.)
-- Peter McGoron