[Scheme-reports] file inclusion (section 4.1.7 of draft 9) Daniel Villeneuve (08 Jun 2013 03:36 UTC)
Re: [Scheme-reports] file inclusion (section 4.1.7 of draft 9) John Cowan (08 Jun 2013 03:39 UTC)

Re: [Scheme-reports] file inclusion (section 4.1.7 of draft 9) John Cowan 08 Jun 2013 03:38 UTC

Daniel Villeneuve scripsit:

> (define-syntax m
>    (syntax-rules ()
>      ((_) (lambda (a) (include "some/file.sch")))))
>
> where the file "some/file.sch" contains, say,
>
> (+ a 1)
>
> Is the symbol `a' in "some/file.sch" supposed to match the
> lambda's argument?

Yes, I believe so: files are included at the S-expression level,
not hygienically.

--
But you, Wormtongue, you have done what you could for your true master.  Some
reward you have earned at least.  Yet Saruman is apt to overlook his bargains.
I should advise you to go quickly and remind him, lest he forget your faithful
service.  --Gandalf             John Cowan <cowan@ccil.org>

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