[comp.sys.mac] C++ vs. Pascal. You want proof?

djones@megatest.UUCP (Dave Jones) (02/16/88)

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.

bayes@hpfcdc.HP.COM (Scott Bayes) (02/19/88)

>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:
 [list of C++ goodies]
>
>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.

Thanks, Dave. That was even better than "believe me 'cause I'm always right".
:-) He probably was right.

Sounds pretty good. Does it support conformant arrays? Can you execute
procedure and function pointers? If so, it sounds like something really
very powerful and supportive of good programming style (Pascal is the second,
except for some nasty oversights and glitches, but not the first).

I'm currently trying to get the time to learn C (along with my at-work
project to be done, and reading IM parts I..n).

Scott:=Bayes (maybe Scott=Bayes soon)
bayes@hpfclw