Rule 172p-stat-module
Elaboration of Programs
(172)
Comments
Each module is elaborated in the static basis that the modules before it have built, so it finds there the interface of every module it imports, and the type names it generates are new (rule (46)). The side condition makes port names global to the program: no two ports of a program share a name, even in different modules, and no port has the name of a manager of the platform; a program with such a clash does not elaborate.
Referred to from
TeX source
\defnrule[r:p-stat-module]
{\jdg{\pgBstat}{\modm}{\pgBstat',E}\\
\Dom(\PE\of\pgBstat')\cap\big(\Dom(\PE\of\pgBstat)\cup\effMgrPlat\big)=\emptyset\\
\jstat{\pgBstat+\pgBstat'}{\program}{(\tau,\PE)}}
{\jstat{\pgBstat}{\modm\ \program}{(\tau,\PE)}}Tests (2)
- elm / MinimalImportValueTestA value exposed by one module and used in another.
- elm / StandardA84DuplicatePortNameTestTwo ports of one program may not have the same name.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:p-stat-module] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.