C++ anomaly (maybe)

M.J.Shannon,Jr. mjs at alice.UUCP
Tue Jan 8 00:32:43 AEST 1985


The anomaly you describe (`1<<31') is not anomalous because the
interpretation of each operator is dependent on the types of its
arguments.  Further, the use of `<<' for input and `>>' for output are
not a part of the C++ language, but are part of a (the) subroutine
library which requires a header file to be included (to define the
overloading of the operators `<<' and `>>').  Thus, no anomaly.
-- 
	Marty Shannon
UUCP:	{alice,research}!mjs
	(rabbit is dead; long live alice!)
Phone:	201-582-3199



More information about the Comp.lang.c mailing list