[comp.lang.modula2] More questions on modula-2?

dalal@topaz.rutgers.edu (Mukesh Dalal) (08/20/87)

Wirth (3rd edition, page 81) says: "... a procedure declaration appears as a
special kind of constant declaration, the value of the constant being
a procedure." 
It follows that it should also be possible to make a procedure
declaration in the CONST from. This makes sense (and becomes
particulary useful) when one imports a procedure and exports it back
after renaming it.

	definition ...;
	 FROM ... IMPORT procedureABC;
	 CONST
		XYZ = procedureABC;
	  ...;

My specific question is: Is such a construct allowed? If not, is there
any other way to rename an imported procedure and export it (other
than explicitly making a call to the imported procedure in the new
procedure):

	implementation...;
	  ...
 	  procedure XYZ ...
		procedureABC...;
		end;
	  ...;

Thanks in advance for all the responses.
-- 

Mukesh Dalal				Voice: (201)-878-1763
Dept. of Computer Sc. (Rutgers)		Net: dalal@topaz.rutgers.edu

	"To every action, there is an OVER-REACTION"