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,ee0a468e6667bd1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-20 15:25:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-1-214.cvx2.telinco.NET!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: Ada95 language design question (accessibility rules and type extensions) Date: Thu, 20 Dec 2001 22:13:05 -0000 Message-ID: <9vts1u$hqbgg$1@ID-25716.news.dfncis.de> References: NNTP-Posting-Host: ppp-1-214.cvx2.telinco.net (212.1.140.214) X-Trace: fu-berlin.de 1008890750 18689552 212.1.140.214 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:18183 Date: 2001-12-20T22:13:05+00:00 List-Id: I think the answer to your question, Mark, is that something like what you suggest would have worked, but (the designers feared?) it would have ended up with a lot of code with dynamic checks in it. I guess the designers felt uncomfortable with this happening, and that the existing rules were not a problem in practice (and they generally aren't). But IANALL (I Am Not A Language Lawyer ;-) and a comment from one of the 9X design team would be interesting. -- Nick Roberts "Mark Lundquist" wrote in message news:dULT7.2153$NM4.98008@rwcrnsc53... > The invocation of accessibility rules in RM 3.9.1(3) is designed to prevent > dangling dispatch. It seems to me that another way would have been to > disallow assignment of a tagged type to the classwide type of a statically > shallower parent. Does anyone know why that would not have worked? > > What got me started thinking on this was the common complaint about the > implementation of controlledness, and the ramification of this rule that > controlled types can't be declared deeper than library-level...