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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-10 05:35:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn From: Robert*@ Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp Date: 10 Oct 2001 05:14:13 -0700 Organization: Newsguy News Service [http://newsguy.com] Message-ID: <9q1e2l05v9@drn.newsguy.com> References: <9pgr68$7pu1@news.cis.okstate.edu> <3bbd6287.346843109@news.cis.dfn.de> <9pkco7$9qe1@news.cis.okstate.edu> <3bc15a16.1317281@news.cis.dfn.de> <9ps9uu$a2g1@news.cis.okstate.edu> <3BC2FD54.69BA446D@sparc01.ftw.rsc.raytheon.com> <9pv54d$9aa1@news.cis.okstate.edu> <3bc40a3f.4768875@news.cis.dfn.de> NNTP-Posting-Host: p-187.newsdawg.com X-Newsreader: Direct Read News 2.90 Xref: archiver1.google.com comp.lang.ada:14141 Date: 2001-10-10T05:14:13-07:00 List-Id: In article , lutz@iks-jena.de says... > > >man Haskell. (or any other lazy evaluation language with unlimited arithmetics) > but you can implement this in a package. There is the BigNumber package in Ada. Java has the BigInteger class where you can as big number as you have memory and swap space. clearly any language has to implement such a thing using something other than primitive types, so what is the point of all of this? >>3. If you mean that Ada has no int-like numeric type with an undefined >> reaction on overflows. Well, is an undefined behaviour good? > >gnat without -gnato will produce erronous code. So we are close. > Ok, so use -gnato, add it to the makefile so you do not forget about it. At least Ada tells one (when using a switch) about an overflow. Other languages is silent about this and will refuse to tell the user, even if you put a gun to the compiler head. (and people still use C for doing floating point computation, go figure). >OTOH C++ source is a type 0 language. Ada source a type 1 language. So they >are different. > never heared of type 0 and type 1 languages, must be a new theory, but I believe you. is it bad or good to be a type 1 vs type 0 language by the way? which is better?