On 25 Jul 99, at 9:35, Kevin A. Foss wrote:
Well the problem is, of course, going to be that extended pascal does allow the interface and implementation of a module in the same file...
Just to amplify, the Extended Pascal standard, section 6.13 (Programs) gives the following syntax: program = program-block program-block = program-component { program-component } program-component = main-program-declaration "." | module-declaration "." ...so a conforming EP program is allowed to have any number of module- declarations in a given source file. The following additional requirements are present: "A program-block shall contain exactly one main-program-declaration." "A processor should be able to accept the program-components of the program-block separately." The last requirement suggests to me that a conforming EP compiler should be able to accept a given EP program with modules either as separate source files, each containing one component, or as a single source file containing all of the components (although there appears to be no explicit statement in the specification requiring the latter). -- Dave Bryan