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: a07f3367d7,3ef3e78eacf6f938 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.velia.net!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3? Newsgroups: comp.lang.eiffel,comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4A64C6FE.3040003@yahoo.com.br> Date: Tue, 21 Jul 2009 09:39:30 +0200 Message-ID: <1q7swl7pyo55h$.1c0nqh26yfp8y.dlg@40tude.net> NNTP-Posting-Date: 21 Jul 2009 09:39:30 CEST NNTP-Posting-Host: eb8278f8.newsspool3.arcor-online.net X-Trace: DXC=;LoLA]L7EQ_@>[RYkFXOIPMcF=Q^Z^V3X4Fo<]lROoRQ^YC2XCjHcbYN8@>nj\>j@YDNcfSJ;bb[UIRnRBaCd On Mon, 20 Jul 2009 16:35:26 -0300, Cesar Rabak wrote: > Hibou57 (Yannick Duchêne) escreveu: >> On 20 juil, 20:33, Cesar Rabak wrote: >>> Here you create two "subtypes" which are only nicknames for Float in >>> order to help the Ada compiler to discriminate the signature. BTW, why >>> the need of two subtypes for coordinates? >> Not “ subtype ” but “ type ”, which is not the same. Ada has both, and >> both are differents. > > They are *considered* different in Ada technology, I respect that, but > from a OO point of view, they are not: a new type would define a new set > of operations on it. It defines a new set of values, which automatically makes the operations different even if they are numerically equivalent or their low-level implementations are shared. You know, two bottles of beer are numerically equivalent to two worn socks. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de