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: 103376,bcdd81f11a99e024 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: C to JVM, time to revive JGNAT? References: <20060809124902.O84175@docenti.ing.unipi.it> <8utCg.12454$E02.4571@newsb.telia.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Thu, 10 Aug 2006 21:55:26 GMT NNTP-Posting-Host: 83.250.106.238 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1155246926 83.250.106.238 (Thu, 10 Aug 2006 23:55:26 CEST) NNTP-Posting-Date: Thu, 10 Aug 2006 23:55:26 CEST Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:6167 Date: 2006-08-10T21:55:26+00:00 List-Id: Maciej Sobczak wrote: > Bj�rn Persson wrote: >> And if you write standard Ada code you can also write once and run >> anywhere. > > Which is true also about standard C: > > #include > int main() > { > puts("Hello"); > return 0; > } Is that the most interesting program you can write in standard C? ;-) As a quick example of a non-portable aspect of standard C, let's say I need to represent natural numbers from 1 to 1000000. Which data type should I use to ensure that the program will be portable to all platforms that can handle these numbers? In C 99 there is *finally* a set of portable integer types. Can I count on those being available in all compilers? -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu