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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,760a0492b97ae06e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-20 20:34:48 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: How to test object hierarchy Date: Sun, 21 Dec 2003 04:34:47 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <93172edb.0312181024.9a536b2@posting.google.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1071981287 7818 134.91.1.34 (21 Dec 2003 04:34:47 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Sun, 21 Dec 2003 04:34:47 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:3654 Date: 2003-12-21T04:34:47+00:00 List-Id: Dmitry A. Kazakov wrote: : :> should "with type" be mentioned in this context? : : Interesting, why do you thing it should? I'm not really familiar with "with type", but I thought (guessed) that the OP's procedure could be distributed across pairs of two, each procedure taking one top level class-wide parameter and a derived type parameter. If I have package D is type Root is tagged private; type Derived_1 is new Root with private; procedure Op_1(d: Derived_1; other: Derived_2'Class); -- too early procedure Op_1(d: Derived_2; other: Derived_2'Class); -- too early, too early type Derived_2 is new Root with private; procedure Op_2(d: Derived_2; other: Derived_1'Class); procedure Op_2(d: Derived_1; other: Derived_1'Class); -- too late ... Will "with type" and package reorganisation help? -- Georg