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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1ce307c10055549 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-11 12:51:31 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: nma124@hotmail.com (steve_H) Newsgroups: comp.lang.ada Subject: Re: IBM Acquires Rational Ada Date: 11 Dec 2002 12:51:31 -0800 Organization: http://groups.google.com/ Message-ID: <8db3d6c8.0212111251.1ecca62e@posting.google.com> References: <3DF1615C.7AAAC86E@adaworks.com> <3DF1B042.6603DDDE@easystreet.com> <3DF2A483.EC512CDF@adaworks.com> <8db3d6c8.0212091445.12594821@posting.google.com> <3DF628C4.7090607@cogeco.ca> <3DF6653D.3030603@cogeco.ca> <8db3d6c8.0212101850.51506572@posting.google.com> <1039618741.173427@master.nyc.kbcfp.com> NNTP-Posting-Host: 63.203.198.30 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1039639891 9960 127.0.0.1 (11 Dec 2002 20:51:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 11 Dec 2002 20:51:31 GMT Xref: archiver1.google.com comp.lang.ada:31712 Date: 2002-12-11T20:51:31+00:00 List-Id: Hyman Rosen wrote in message news:<1039618741.173427@master.nyc.kbcfp.com>... > I think it's a > fallacy cherished by Ada programmers that C or C++ will > just accept any garbage, and therefore code can just be > churned out in those languages. Oh but it does accept any garbage. Are you say that C will not accept this code ----------------------- main(){ long j=999999999; short i; i=j; } ---------------- ?? Ok, lets find out: $ cat foo.c main(){ long j=999999999; short i; i=j; } $ gcc foo.c -o foo $ ./foo it worked!! It compiled with no erros, and ran with no errors. I wonder how the compiler managed to stuff 999,999,999 into a short variable? special packing algorithm must be :) If the above is not garbage, then what do you call it? Brilliancy? And on top of them, people will actually choose C and C++ for numerical computation instead of Ada.