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,29d8139471e3f53e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder2.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Preventing type extensions Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <87iq2bfenl.fsf@mid.deneb.enyo.de> <874odv9npv.fsf@ludovic-brenta.org> <87y6b7cedd.fsf@mid.deneb.enyo.de> <66a3704c-54f9-4f04-8860-aa12f516134b@t3g2000vbb.googlegroups.com> <87d3sib44t.fsf@mid.deneb.enyo.de> <134q4k2ly2pf4$.17nlv1q6q5ivo.dlg@40tude.net> <4c8dec8e$0$6990$9b4e6d93@newsspool4.arcor-online.net> <8f6cceFrv2U1@mid.individual.net> <135a7dc9-3943-45e4-884b-3cc6bce3db0a@q18g2000vbm.googlegroups.com> <10rutrnp4yp1b$.vxcbtginicg9.dlg@40tude.net> Date: Tue, 21 Sep 2010 18:25:07 +0200 Message-ID: <1rwwxbzfj78eh.6l7isp9fciba$.dlg@40tude.net> NNTP-Posting-Date: 21 Sep 2010 18:25:05 CEST NNTP-Posting-Host: e9d5187e.newsspool1.arcor-online.net X-Trace: DXC=f_X@NfThXcF2:OR3:3gaE@ic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgB^0\f^MK@8?I[6LHn;2LCVN[ On Tue, 21 Sep 2010 07:44:51 -0700 (PDT), Cyrille wrote: > On Sep 21, 4:19�pm, "Dmitry A. Kazakov" > wrote: >> >> It is a distinction between a member and a set where it belongs to. These >> are not equivalent. > > not sure what you call "set" in this context... probably not the > container of the same name ;-) Set as in mathematics. A class wide type has values corresponding to the values of types from the closure set, the closure set is build upon the relation <: (derived from). >> Furthermore a type may be member of more than one >> classes (sets of types). Also an operation may be primitive in more than >> one class (AKA multiple dispatch). > > in Ada? can you show an example? Both MI and MD partially exist in Ada. MI is restricted to interfaces. MD is restricted to diagonal multi-methods, e.g: type T is tagged ...; procedure MD_operation (X, Y : T); >>> A horse is an animal... >> >> But animal is not necessary a horse. > > right. so? horse /= animal -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de