Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!ucbvax!pasteur!ames!amdahl!dlb!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.sys.mac Subject: Re: C++ vs. Pascal. You want proof? Message-ID: <268@goofy.megatest.UUCP> Date: 16 Feb 88 02:20:43 GMT References: <11010016@hpfcdc.HP.COM> Organization: Megatest Corporation, San Jose, Ca Lines: 38 in article <11010016@hpfcdc.HP.COM>, bayes@hpfcdc.HP.COM (Scott Bayes) says: > >>Actually, on the type-checking and modularity fronts, C++ is far and >>away superior to Pascal. Especially the modularity part. >>In capitol letters. >>... > > Could you provide some support for this statement? It's hard to believe > without some specifics, though it may well be true. > > Scott:=Bayes > bayes@hpfclw He left out the "You can believe me because I'm always right, and I never lie" part. Unintentional oversight, no doubt. Skeptical huh? Okay, just a taste of what you have in store for you in C++ land: Like most commerical Pascal implementations, C++ has separate compilation, A.K.A. "Units", and static strong type-checking. But it also offers language support for these most useful aids to modularity: . Explicit type-conversion (for "generic" programming) . Object-programming ("classes") . Virtual functions (for procedural abstraction) . Implicit initialization and cleanup of objects . Algorithmic initialization of static objects . Encapsulation . Inheritance (next release: multiple inheritance) . In-line procedure calls Some of these buzz-phrases may be new to you. Grab a copy of Bjourne Stroustrup's book on C++. (He's the creator of the language.) Like they say, "You'll be glad you did." -- Dave J.