From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!mordor!lll-tis!ames!ucbcad!ucbvax!MITRE-BEDFORD.ARPA!emery From: emery@MITRE-BEDFORD.ARPA (Emery) Newsgroups: comp.lang.ada Subject: re: renaming types Message-ID: <8706291307.AA02368@mitre-bedford.ARPA> Date: Mon, 29-Jun-87 09:07:01 EDT Article-I.D.: mitre-be.8706291307.AA02368 Posted: Mon Jun 29 09:07:01 1987 Date-Received: Sat, 4-Jul-87 08:11:12 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet List-Id: besides the two possible solutions (record with single component, and access), there's a third possibility: package A is type T is private private type T is new B.BT; end A; However, this introduces all the 'overhead' of derived types. I've often wanted to complete a private type definition as simply another type, so I think this is a real problem, since several people (independently) have identified this shortcoming (see the ACM SIGAda Language Issues WG discussions on this topic). However, I'm not sure that 'rename' is the right operation. It seems to me that 'subtype' may be even better: package A is type T is private; private subtype T is new B.BT; -- possibly constrained, too! end A; dave emery emery@mitre-bedford.arpa