Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell19-Sep-12 9:28
jschell19-Sep-12 9:28 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 14:14
pasztorpisti19-Sep-12 14:14 
GeneralRe: What makes C and C++ a "good" language? Pin
Brandon-X1200019-Sep-12 16:35
Brandon-X1200019-Sep-12 16:35 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 22:42
pasztorpisti19-Sep-12 22:42 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell20-Sep-12 8:27
jschell20-Sep-12 8:27 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti20-Sep-12 12:02
pasztorpisti20-Sep-12 12:02 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell21-Sep-12 10:14
jschell21-Sep-12 10:14 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti21-Sep-12 10:52
pasztorpisti21-Sep-12 10:52 
jschell wrote:
The point however is that windows has been re-written.

Well, from our point of view its not important how much they extended or replaced their codebase. Its a fact that they kept backward compatibility with their old api and that doesn't leave much space for practically changing the underlying language. Lot of parts have been tweaked and replaced in windows in the past decade, but I was shocked how much hacks have been kept in the code and win9x compatiblity layers. I'm pretty sure the level of backward compatibility they have often ties their hands pretty strong. On hack I really mean (sometimes really dirty) hack for example to avoid crashes of specific popular old programs that has bugs that don't crash the program on older systems but without special handling they would simply die on NT. And the hacks are explicitly commented with bug IDs and reasonings. This is another hidden face of windows' backward compatibility. I think what makes windows successful also holds it back in development, but I really respect the MS coder guys for what they achieved. Keeping backward compatibility on such a large scale is tremendous work.
They don't rewrite everything, what I was curious in the sources is module loading, that consisted of pretty old sources with lot of win3.1 and win9x sources. They use a lot of typedefs that makes porting relatively easy even to 64 bit and thats quite OK till they go on with backward compatibility.
jschell wrote:
I suspect I can take 'cat' from a pre windows unix variant and with "minimal" modification get it to work on a windows 7.

 

That however doesn't mean that windows wasn't re-written.

I wouldnt compare the complexity of a cat program with even the simplest windows gui program. The same is true for the winapi versus posix. The posix api doesn't contain api calls that seriously enforce windows specific compatibility restrictions internally. On the other hand if a program for example subclasses a windows common controls dialog and it expects the border size to be X pixels and hacks around with gui hooking and expects you to send unrelated window messages to avoid a crash then you have a very complex (and sometimes not too well designed) api system to simulate natively and thats near not as easy as implementing a pure simple posix api.

Well, we are talking about why havent they changed the language, and the answer is clear: Source level backward compatibility. Its pointelss spinning around how much they rewrote from windows - it simply meaningless if they decided to keep backward compatiblity its impractical to start thinking about changing the language.
GeneralRe: What makes C and C++ a "good" language? Pin
jschell22-Sep-12 8:42
jschell22-Sep-12 8:42 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti22-Sep-12 16:03
pasztorpisti22-Sep-12 16:03 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 8:33
mveCPallini19-Sep-12 8:33 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 12:09
pasztorpisti19-Sep-12 12:09 
GeneralRe: What makes C and C++ a "good" language? PinPopular
CPallini19-Sep-12 21:30
mveCPallini19-Sep-12 21:30 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 22:32
pasztorpisti19-Sep-12 22:32 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 22:46
mveCPallini19-Sep-12 22:46 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 22:56
pasztorpisti19-Sep-12 22:56 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 23:07
mveCPallini19-Sep-12 23:07 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 23:52
pasztorpisti19-Sep-12 23:52 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 23:59
mveCPallini19-Sep-12 23:59 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti20-Sep-12 1:54
pasztorpisti20-Sep-12 1:54 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini20-Sep-12 2:01
mveCPallini20-Sep-12 2:01 
JokeRe: What makes C and C++ a "good" language? Pin
pasztorpisti20-Sep-12 2:06
pasztorpisti20-Sep-12 2:06 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini20-Sep-12 2:18
mveCPallini20-Sep-12 2:18 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell20-Sep-12 8:45
jschell20-Sep-12 8:45 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti20-Sep-12 11:22
pasztorpisti20-Sep-12 11:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.