Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2006 10:43:48 -0700
From:      Don Dugger <dugger@hotlz.com>
To:        freebsd-chat@freebsd.org
Cc:        =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Subject:   Re: Why is not more FreeBSD software written in C++?
Message-ID:  <444A6B54.1030902@hotlz.com>
In-Reply-To: <86d5f9pno8.fsf@xps.des.no>
References:  <44490663.3040506@hotlz.com> <86d5f9pno8.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav 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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444A6B54.1030902>