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,16f6b0f03cbd9c3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-15 19:40:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!207.115.63.138!newscon04.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: Subject: Re: New, and don't understand the error message! X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <2_EE8.14975$aV3.1936693419@newssvr11.news.prodigy.com> NNTP-Posting-Host: 208.191.177.131 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr11.news.prodigy.com 1021516798 ST000 208.191.177.131 (Wed, 15 May 2002 22:39:58 EDT) NNTP-Posting-Date: Wed, 15 May 2002 22:39:58 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: T[OUS^[BTRU[RID[N[OJNW@@YJ_ZTB\MV@BD]\YIJYWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM Date: Thu, 16 May 2002 02:39:58 GMT Xref: archiver1.google.com comp.lang.ada:24148 Date: 2002-05-16T02:39:58+00:00 List-Id: "Danny Woolston" wrote in message news:d17ba8b2.0205151034.6f1d1961@posting.google.com... > linked_lists_test.adb: Error: line 6 col 57 LRM:3.9.1(3), The > accessibility level of a record extension shall not exceed that of its > parent; this also applies in a generic instantiation > (In instance of generic Linked_Lists at linked_lists.ads: line 40 col 10) In effect the compiler is telling you that a new type (ie, the "record extension") derived from an existing tagged type (the "parent") cannot be declared at a more deeply nested level than that of the "parent" type. For example, a tagged type declared in a library package can only have extensions also declared at the library level. ("Nesting" isn't quite the proper term for "accessibility level", but it will be close enough to get the idea across.) The gist of the rationale for the rule is that it precludes any attempt to dispatch to routines that no longer exist. Have a look at a good textbook; the error message above is exactly right in what it is telling you, but the terms it uses are precise and must be understood in order to know what to do. (Reading the RM is probably not the best way to start.) It is a subtle topic and the textbook will/should explain it at sufficient length. --- Patrick Rogers Consulting and Training in: http://www.classwide.com Real-Time/OO Languages progers@classwide.com Hard Deadline Schedulability Analysis (281)648-3165 Software Fault Tolerance