Re: [Scheme-reports] Module-level BEGIN is not a BEGIN - please call it something else John Cowan (27 Apr 2011 21:57 UTC)

Re: [Scheme-reports] Module-level BEGIN is not a BEGIN - please call it something else John Cowan 27 Apr 2011 21:57 UTC

Jussi Piitulainen scripsit:

> Is there anything in the report about how imported modules are found?
> Obviously (import (scheme io)) refers to a known module, but suppose I
> had a module of my own. My present understanding is that this is left
> intentionally unspecified in the small language.

There is nothing in the report about it, and I would oppose measures to
add it.

> It would not be the right balance to specify top-level module
> definitions in this report but leave the more important library system
> out. Larger systems can provide both.

I don't know what you mean here.  R7RS modules are essentially R6RS
libraries with a few less, and a few extra, bells and whistles.  They
have different names because they are technically incompatible, but
there is a compatibility core: imports with optional inclusion,
exclusion, renaming, and prefixing; exports with optional renaming;
embedded code wrapped in BEGIN.

--
John Cowan   cowan@ccil.org    http://ccil.org/~cowan
I am he that buries his friends alive and drowns them and draws them
alive again from the water. I came from the end of a bag, but no bag
went over me.  I am the friend of bears and the guest of eagles. I am
Ringwinner and Luckwearer; and I am Barrel-rider.  --Bilbo to Smaug

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