Re: mixed-sign arithmetic and auto
Bo Persson wrote:
My experience porting D code between platforms is it ports easier
than the equivalent C++ code.
Porting is easier if you limit the number of potential platforms.
Sure, but I was comparing porting C++ from platform A to B with porting
D from A to B. The latter was noticeably easier.
Porting Java is easy too, if your target platform supports it.
Porting Java is hard, if you haven't ported its platform first!
Porting C++ compilers is pretty hard, too. How many programmers do you
know who can write a code generator?
We had a discussion just last week with a Java developer on reusing
his web server code on the mainframe.
- "Oh dear! That's just Java 1.5, I need 1.6 generics for my code.
Limiting myself to 1.5 features will cost you a lot more!"
But isn't Java implemented in C? C is more portable and available on
every platform, so he should just recompile it and he's good to go.
A look through the source of Boost and STL will show that compiler
support for various C++ features is a perennial problem. Source code
portability, when using advanced C++ features, has always been a serious
problem. How long do you think it will take for all C++ compilers to
implement all of C++0x?
--------
Walter Bright
http://www.digitalmars.com
C, C++, D programming language compilers
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]