C++ anomaly (maybe)

J.S.Schwarz jss at sftri.UUCP
Tue Jan 8 05:55:01 AEST 1985


> The C++ description in the latest BLTJ describes the input and output
> primitives as being '<<' and '>>'.
> 
> What's to become of writing '1<<31' instead of the more readable (:-))
> '4294967296'?
> 
> 	Brian Pinkerton @ wisconsin

One of the most powerful features of C++ is the ability to overload
operators.  This means you can add new uses without lossing old one.
<< and >> still mean shifts when both operands are integers.


	Jerry Schwarz
	Bell Labs, Summit N. J.



More information about the Comp.lang.c mailing list