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 Path: border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: 'Protected' abstract subprograms Date: Sat, 11 Jan 2014 20:35:46 +0100 Organization: cbb software GmbH Message-ID: <14q37tx4uvbw4$.ua9oe7a01emv.dlg@40tude.net> References: <839fee13-2743-49f6-a7f3-f95578386201@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: SACMYH1Y5pIOuwuZn7n4NQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:184397 Date: 2014-01-11T20:35:46+01:00 List-Id: On Sat, 11 Jan 2014 15:42:39 +0200, Niklas Holsti wrote: >> * When you dispatch in a body of an operation that means that the body is >> valid for more than one type. Many types = class. Operation for all class = >> class-wide operation. > > Yes, but "many types" is not the same as "all class". Per design pattern it is all class. Anyway, it is certainly not the singleton type specified in the pattern, because that is type is abstract. But of course, if you want to propose changes in the language which would allow specification of narrower subclasses for such cases, it would be most welcome. >> Re-dispatch breaks this model and effectively makes your design >> un/weakly typed. > > I don't agree, because my conceptual "model" is different. Your model is > stronger (more specific) than mine, which paradoxically means that it is > easier to break :-) Wouldn't that be arguing against strong typing? The point is that the thing is semantically inconsistent with the types as annotated. You can say that it is the types here to blame, let's do less typing. I say, that types are OK, they must be used correctly and not fought against. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de