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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2ff5c149712ec0eb X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news.germany.com!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada Interfaces and the Liskov Substitution Principle Date: Thu, 24 May 2007 17:44:42 -0500 Organization: Jacob's private Usenet server Message-ID: References: <871wh7i8lq.fsf@ludovic-brenta.org> <4655D90D.7040709@obry.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1180046561 7553 69.95.181.76 (24 May 2007 22:42:41 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 24 May 2007 22:42:41 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Xref: g2news1.google.com comp.lang.ada:15924 Date: 2007-05-24T17:44:42-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:tii7nk5e3998$.1xfer2lqmixvy.dlg@40tude.net... > On Thu, 24 May 2007 20:27:25 +0200, Pascal Obry wrote: > > > Randy Brukardt a �crit : > >> Right. The most general type of interface is a limited interface; every > >> interface should be declared limited if possible. (We didn't make that the > >> default solely because it would be inconsistent with the rest of the > >> language.) > > > > Well a task type is limited by default, idem for a protected object types. > > Randy probably meant that If it were limited then one would need to > introduce "not limited" qualifier to be able to declare a non-limited > interface. (In addition to awful "not null") Correct, that's what I meant. When Ada has a choice between non-limited and limited, it makes you write "limited" if you meant that. That's annoying in this case, but it's less annoying than having: type A is tagged record... type B is tagged limited record ... type C is tagged private; type D is tagged limited private; type E is not limited interface; type F is interface; which would be forever confusing. Randy.