[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] 5.5.1 module syntax
- To: "Aaron W. Hsu" <arcfide@x>
- Subject: Re: [Scheme-reports] 5.5.1 module syntax
- From: Andy Wingo <wingo@x>
- Date: Fri, 20 May 2011 09:48:10 +0200
- Cc: scheme-reports@x
- In-reply-to: <op.vvrcp4qs0p3ku8@localhost> (Aaron W. Hsu's message of "Thu, 19 May 2011 22:19:06 -0400")
- References: <m37h9m7j7q.fsf@unquote.localdomain> <20110519181901.GN3745@mercury.ccil.org> <m3liy21iff.fsf@unquote.localdomain> <op.vvrcp4qs0p3ku8@localhost>
On Fri 20 May 2011 04:19, "Aaron W. Hsu" <arcfide@x> writes:
>> (module (foo)
>> (import (only (bar) baz))
>> (begin
>> (define qux baz)))
>>
>> Is this equivalent to:
>>
>> (module (foo)
>> (begin
>> (define qux baz))
>> (import (only (bar) baz)))
>
>> ?
>
> Yes, this is equivalent. The location of imports has no effect on their
> importing. The Body elements are concatenated together and evaluated in
> the context of an environment defined by the sum total of the imports.
I did not see this language in the report. Suggestion: add it, or point
me to the language :)
Andy
--
http://wingolog.org/
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports