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: a07f3367d7,3ef3e78eacf6f938 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!exabot.com!freenix!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.eiffel,comp.lang.ada Subject: Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3? Date: Tue, 21 Jul 2009 10:56:24 +0200 Organization: Adalog Message-ID: References: NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1248156361 1761 195.25.228.57 (21 Jul 2009 06:06:01 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 21 Jul 2009 06:06:01 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: Xref: g2news2.google.com comp.lang.eiffel:348 comp.lang.ada:7201 Date: 2009-07-21T10:56:24+02:00 List-Id: Cesar Rabak a �crit : > Ludovic Brenta escreveu: >> You focused too much, IMHO, on the range restriction which is not the >> important part. The important part is that, in Ada, this declares a >> new *type* (not a "subtype" or "nickname for Float"), which is >> *incompatible* with Float or any other type. > > More or less. It has all the operations of the derived type, uses the > same representation on the machine. The incompatibility is syntactic no > in its essence. > Here is the crux of the misunderstanding: sure, at /machine/ level they are the same, but in the /problem domain/ they are different. The big difference between Ada an other languages is that types (even elementary ones) reflect the problem domain, not machine types. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr