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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a01d08518b83ef44,start X-Google-Attributes: gid103376,public From: m193884@csehp1.mdc.com Subject: "with private" required in generic formal type parameter Date: 1997/01/17 Message-ID: <853519646.32574@dejanews.com>#1/1 X-Deja-AN: 210451279 x-http-user-agent: Mozilla/3.0 (Win16; I) x-originating-ip-addr: 130.38.104.38 (P1197654.MDC.COM) organization: Deja News USENET Posting Service x-article-creation-date: Fri Jan 17 16:55:50 1997 GMT x-authenticated-sender: m193884@csehp1.mdc.com reply-to: m193884@csehp1.mdc.com newsgroups: comp.lang.ada Date: 1997-01-17T00:00:00+00:00 List-Id: I created a generic package with one generic parameter, like so: generic type A is new B; package C is .... where B is a tagged type. The compiler flagged the generic parameter with the following words: "A record_extension_part shall be provided if and only if the parent type is a tagged type" I found the validity of this in LRM 12.5 and according to my reading the compiler is correct. What I'm curious about is: _why_ is this restriction needed? Doesn't the compiler already know that the formal is tagged and the actual must be? My understanding is, moreover, that any actual must be derived from B. I'm not arguing that it shouldn't be required, since it appears to enhance readability. I'm just curious as to what compiler problem "with private" solves in this example that would be there without it. -- James Squire mailto:m193884 no junk mail allowed@csehp1.mdc.com MDA Avionics Tools & Processes McDonnell Douglas Aerospace http://www.mdc.com/ Opinions expressed here are my own and NOT my company's "We'll strike back and we'll strike back hard!" -- Londo, "Midnight on the Firing Line" -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet