Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!aioe.org!feeder.news-service.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: Java vs C++ Followup-To: comp.lang.java.programmer Date: Tue, 08 Feb 2011 09:22:24 +1300 Organization: Geek Central Lines: 20 Message-ID: References: <2011020510425674637-angrybaldguy@gmailcom> <4d4e25e8@news.x-privat.org> <4d4f45fc$0$23760$14726298@news.sunsite.dk> NNTP-Posting-Host: 118-92-86-70.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: lust.ihug.co.nz 1297110145 13464 118.92.86.70 (7 Feb 2011 20:22:25 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Mon, 7 Feb 2011 20:22:25 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: csiph.com comp.lang.java.programmer:25598 In message , Joshua Cranmer wrote: > On 02/07/2011 01:06 AM, Lawrence D'Oliveiro wrote: > >> In message<4d4f45fc$0$23760$14726298@news.sunsite.dk>, Arne Vajhøj wrote: >>> And the C spec leaves a lot of things to implementations. >> >> Not too much that you can’t write portable code in it. > > Writing portable code in C pretty much requires you to do hefty > compatibility layers. Not really. Sticking to standard POSIX types like size_t, time_t etc gets you a lot of the way there. > Many projects use typedefs to get proper-sized int variables (you can't > use stdint.h, as MSVC doesn't implement it, as of MSVC 9.0). How sad for MSVC...