看板 FB_chat 關於我們 聯絡資訊
Dag-Erling Sm鷨grav wrote: >Don Dugger <dugger@hotlz.com> writes: > > >>The fact is that all your c code will compile in c++ >> >> > >That is wrong. To name just one example, C++ is much stricter about >type casts than C is. > > I mean the constructs. Casting will not change the functionality or shouldn't. > > >>and the c++ compiler may optimize better then the c compiler. >> >> > >I doubt it. It is the exact same compiler with the exact same >optimizer and the exact same code generator. The only difference >between gcc and g++ is the parser. > > Actually your wrong, first gcc is not the only compiler and a g++ compilers can optimize at link time, as was point out to me by the guys that wrote the DEC c++ compiler. And the point was that there's no less performance with c++, which your comment only reinforces. > > >>C++ and C are languages that are defined by ANSI >> >> > >No they're not. It may surprise you to learn that there is a whole >world outside the USA which does not care one whit about ANSI. > >DES > > I apologizes if you thought I was making any reference to nationality in that comment I was only trying to say that c++ is not owned by a corporation and as you point out is subject to the hole worlds views not just the interests of a small group of people who are only interested in there own profits. Don 8) _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"