🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.modula2
1 messages
1 total messages Started by Mukesh Dalal Thu, 20 Aug 1987 16:03
More questions on modula-2?
#3757
Author: Mukesh Dalal
Date: Thu, 20 Aug 1987 16:03
34 lines
1516 bytes
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" 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads