[Scheme-reports] Location of definitions inside libraries
Christian Stigen Larsen 30 Dec 2012 21:37 UTC
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@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports