[net.lang.mod2] Compiling Modula-2 in one pass

patcl@tekecs.UUCP (Pat Clancy) (09/12/84)

> Now, Modula-2 syntax does not allow any type or variable declarations
> at any point after the beginning of the executable part, right?...
> So the ONLY possible forward-referencing is calls to PROCEDURES that have
> not been declared yet...

Incorrect. The number and ordering of CONST/TYPE/VAR/PROCEDURE/MODULE
declaration sections within the current scope is not constrained.
Backpatching is "theoretically" possible in one pass, but that pass
would probably much larger and more complex than two normal passes
combined.

Pat Clancy
{ucbvax,decvax,ihnp4,allegra,uw-beaver,hplabs}!tektronix!tekecs!patcl