Bugs in set!-values implementation Wolfgang Corcoran-Mathe 02 May 2026 18:55 UTC
Hello Marc & the SRFI 210 list,

Peter McGoron & I spotted a few bugs in the set!-values implementation:

1. It doesn't handle the degenerate case

     (set!-values () <producer>).

   While not very useful, this form is allowed by the specification &
   comes up often enough in macro output.

2. It allows duplicate variables to occur in the formals.

3. The final clause, (let-values ((temp*) producer) ...) is malformed.
   (Interestingly, it still works in Chibi.)

A patch (composed mostly from Peter's ideas) fixing these issues in both
srfi/210.scm and the SRFI document is attached.

Thanks,

Wolfgang

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