Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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"