[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Scheme-reports] Location of definitions inside libraries



Hi,

are procedure definitions allowed outside of begin-blocks?  In John Cowan's
overview of R7RS,

  http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/overview.pdf

it appears so:

    (define-library (hello)
      ; ...
      (define (hello-world)
         ; ...))

contra

    (define-library (hello)
      ; ...
      (begin
        (define (hello-world)
          ; ...)))

The 8th draft doesn't seem to allow anything other than the seven library
declarations mentioned in 5.6.1, implying that definitions must appear
inside (begin ...).

If this is the intention, I think the draft should either state so
explicitly or show it as part of the example library in 5.6.2.

-- 
Christian Stigen Larsen

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports