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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f2f0fba4aa9a6bca X-Google-Attributes: gid103376,public From: Florian Weimer Subject: Re: Having a problem with private extension and discriminants... Date: 1999/07/22 Message-ID: #1/1 X-Deja-AN: 503942217 References: <7n662e$gu7$1@aludra.usc.edu> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.stuttgart.netsurf.de X-Trace: deneb.cygnus.stuttgart.netsurf.de 932629787 13011 192.168.0.1 (22 Jul 1999 07:49:47 GMT) Organization: Penguin on board Mime-Version: 1.0 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) XEmacs/21.1 (20 Minutes to Nikko) NNTP-Posting-Date: 22 Jul 1999 07:49:47 GMT Newsgroups: comp.lang.ada Date: 1999-07-22T07:49:47+00:00 List-Id: westonpa@aludra.usc.edu (westonpa) writes: > package P1 is > type A(Foo : Natural) is abstract tagged null record; > > private > > type B is abstract new A with > record > -- private fields here > end record; > > end P1; > package P1.C1 is > > type C is new A with private; > > private > type C is new B with > record > -- more fields in addition to B's > end record; > > end P1.C1; Perhaps this is a solution: package P1.C1 is type C (Foo : Natural) is new A with private; private type C (Foo : Natural) is new B (Foo) with record -- more fields in addition to B's end record; end P1.C1;