🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3757

More questions on modula-2?

#3757
From: 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" 
Technical Details
Message-ID: <14095@topaz.rutgers.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rutgers!topaz.rutgers.edu!dalal

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rutgers!topaz.rutgers.edu!dalal
From: dalal@topaz.rutgers.edu (Mukesh Dalal)
Newsgroups: comp.lang.modula2
Subject: More questions on modula-2?
Message-ID: <14095@topaz.rutgers.edu>
Date: Thu, 20-Aug-87 12:03:16 EDT
Article-I.D.: topaz.14095
Posted: Thu Aug 20 12:03:16 1987
Date-Received: Sat, 22-Aug-87 10:23:27 EDT
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 34
Keywords: modula-2, procedures as constants