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,UTF8 Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Date: Fri, 11 Aug 2006 10:54:06 +0300 Subject: Re: C to JVM, time to revive JGNAT? From: "Martin Krischik" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Newsgroups: comp.lang.ada References: <20060809124902.O84175@docenti.ing.unipi.it> <8utCg.12454$E02.4571@newsb.telia.net> Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera Mail/9.00 (Win32) Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 213.154.202.211 X-Trace: news.sunsite.dk DXC=F34Afi6CBV>:YiKBaBLXD=YSB=nbEKnk;lY5`=Xnj1S?S5daR30PdP5V:_8RJBabH=;O^i0GOe`^3ofe`J\FNoJ0=AVIGff6dP4gSG3K2eCDP8 X-Complaints-To: staff@sunsite.dk Xref: g2news2.google.com comp.lang.ada:6171 Date: 2006-08-11T10:54:06+03:00 List-Id: Am 11.08.2006, 00:55 Uhr, schrieb Björn Persson : > 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? No. It took me just a quarter of an hour to create a stdtype.h for MSC yet Microsoft programmers se no need to create one. Ok the MS programmers can't just copy the version from GCC but I don't think writing from scratch would take more then an hour. Still no avail. Martin -- Martin Krischik krischik@users.sourceforge.net