Hello, Per.  What do you think about updating SRFI 64 with an erratum notice for the issue described below?

Thanks.

On Thu, Aug 4, 2016 at 7:26 AM, Mathieu Lirzin <xxxxxx@gnu.org> wrote:
Hello,

In the documentation the following example is given for
'test-group-with-cleanup':

  (test-group-with-cleanup "test-file"
    (define f (open-output-file "log"))
    (do-a-bunch-of-tests f)
    (close-output-port f))

However AIUI 'f' is not bound in the cleanup form since this example
expands to the following:

  (test-group suite-name
    (dynamic-wind
      (lambda ()
         #f)
      (lambda ()
        (define f (open-output-file "log"))
        (do-a-bunch-of-tests f))
      (lambda ()
        (close-output-port f))))

Would it be possible to fix the documentation by moving the definition
of 'f' to the top level?

Thanks.

--
Mathieu Lirzin