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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!newsfeed.stueberl.de!bolzen.all.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada Interfaces and the Liskov Substitution Principle Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1179953657.839272.160320@a26g2000pre.googlegroups.com> <1179991769.376381.252010@m36g2000hse.googlegroups.com> <12h6mi42jcha0.7f9vfsnihjwr$.dlg@40tude.net> <1180003336.1163.29.camel@kartoffel> Date: Thu, 24 May 2007 15:41:41 +0200 Message-ID: <19eo9hpc4k1rh$.1w3d7ih2sgux5.dlg@40tude.net> NNTP-Posting-Date: 24 May 2007 15:39:35 CEST NNTP-Posting-Host: a83f3d72.newsspool1.arcor-online.net X-Trace: DXC=OWW@Z;[>c@`J00P1S40fZgic==]BZ:afn4Fo<]lROoRaFl8W>\BH3Yb^8KKO5n_BHiDNcfSJ;bb[eFCTGGVUmh?dLK[5LiR>kgbY>j1ZB On Thu, 24 May 2007 12:42:16 +0200, Georg Bauhaus wrote: > In fact, Eiffel has a relative, the assignment attempt > (written "?="). And the Eiffel arguments versus Liskov/Wing > are that the principles guiding program design should come > from the solution to a problem, not from models when these > cannot capture the solution. In a sense, it is argued that > that L/W substitution (and also co/contra-variance) violate > programming principles! Actually [absolute] LSP violates common sense. IF A were fully and unconditionally substitutable for B in all possible contexts, then As and Bs would be equivalent in any thinkable sense. Because then they would be indistinguishable without magic. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de