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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public X-Google-Thread: 10261c,90121986704b5776 X-Google-Attributes: gid10261c,public X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public X-Google-Thread: 10c950,90121986704b5776 X-Google-Attributes: gid10c950,public X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public X-Google-Thread: fdb77,4873305131bf4d94 X-Google-Attributes: gidfdb77,public From: Bob Horvath Subject: Re: Yet another stupid language war (was: ... the only languages you need!!) Date: 1997/10/31 Message-ID: <3459DA2C.14792107@horvath.com>#1/1 X-Deja-AN: 286171832 References: <34557f2b.1934172@news.mindspring.com> <3456e71b.3833189@news.mindspring.com> <3458D116.2D34@pseserv3.fw.hac.com> <63anc7$75p$1@darla.visi.com> <345947D2.D20EF8E9@horvath.com> Organization: EnterAct L.L.C. Turbo-Elite News Server Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java.advocacy,comp.lang.pascal.ansi-iso,comp.lang.pascal.misc Date: 1997-10-31T00:00:00+00:00 List-Id: Ole-Hjalmar Kristensen FOU.TD/DELAB wrote: > Bob Horvath writes: > > > Peter Seebach wrote: > > > > > Speak for C++. :) C has a bit of history, but is really fairly > > > consistent. :) > > > > Hmmmm. How big is an int? > > On most platforms, exactly as big as an integer in Ada. None of those > languages guarantee the exact size of their (predefined) integers. :-) The parenthetical and the emoticon are keys here. Only the predefined INTEGER type in Ada is implementation dependant. You can define integer types based on ranges and are guaranteed consistent results across compilers. This is unlike int in C which can be of many sizes, or Java where the size of an int is defined by the language. I had forgotten about the implementation dependencies with the INTEGER type in Ada because you would be a fool to use it when you can so easily create an integer type using a range constraint.