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-Thread: 103376,2ff5c149712ec0eb X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!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: Wed, 23 May 2007 16:58:05 -0500 Organization: Jacob's private Usenet server Message-ID: References: <1179953657.839272.160320@a26g2000pre.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1179957369 15945 69.95.181.76 (23 May 2007 21:56:09 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 23 May 2007 21:56:09 +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:15894 Date: 2007-05-23T16:58:05-05:00 List-Id: "Maciej Sobczak" wrote in message news:1179953657.839272.160320@a26g2000pre.googlegroups.com... > On 23 Maj, 21:47, Stefan Lucks > wrote: > > > to me, it seems as if Ada 2005 is bluntly violating the Liskov > > Substitution Prinicple. E.g., define > > [...] > > Interesting. > > My humble opinion: assignment of class-wide types should be prohibited > in the first place. I mean - at compile time. > It's just asking for troubles. That doesn't make much sense. Yes, it is a bit weird that assignment is potentially a dispatching operation, but otherwise there is no semantic problem with it. (The OP having an illegal example, thus proving nothing.) It might be a bit hard to use usefully, but that's no reason for banning it. Randy.