Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!microsoft!davidbro From: davidbro@microsoft.UUCP (Dave BROWN) Newsgroups: comp.sys.amiga.programmer Subject: Re: Debugging C++ Message-ID: <72392@microsoft.UUCP> Date: 17 May 91 00:56:15 GMT References: <1991May5.222328.16225@csis.dit.csiro.au> <616@lysator.liu.se> <38579@ditka.Chicago.COM> <427@amgraf.UUCP> Reply-To: davidbro@microsoft.UUCP (Dave BROWN) Organization: Microsoft Corp., Redmond WA Lines: 46 In article <427@amgraf.UUCP> huver@amgraf.UUCP (Huver) writes: > [and went on to say that Manx sdb worked like a champ, and SAS cpr > didn't work quite right, likely due to "inproper compilation flags".] > >This guy is getting on my nerves. Where in his example source code is >C++? If I write in C++, why would I use printf()?? Because on some implementations of the C++ libraries, cout << "Hello World!\n"; is significantly slower than printf("Hello World!\n"); Besides... Object Oriented Programming is only a design technique. You can do Object Oriented Programming in C, it's just harder. C++ introduces enough syntactic sugar that you don't have to bend over backwards to make the code make sense. I've developed quite a bit of code in C++ (been doing it professionally for over 3 years now), and have only RARELY used the streams code. This is probably because most of the code was written at the systems level -- if I wanted to use files, I called the OS's entry points. Didn't want to link in any more than I had to. >Quit fooling around and go work on a real C++ debugger. With the proper #line directives, nothing extra should be needed (mind you, the names will still be mangled, but they ARE recognizable). I use Glockenspiel C++ and Microsoft C 6.0 with CodeView all the time. Mind you, I haven't tried it with Comeau, Lattice 5.10a and CodeProbe, but at this time it would be futile, given that the Lattice C pre-processor does not generate #line directives. >-huver !uunet!amgraf!huver dave -- Dave Brown ...!uunet!microsoft!davidbro ...ni ssendriew eht tel eW "the night doesn't like it... looks just like your face in the moon to me"