Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!cbosgd!cbdkc1!desoto!packard!edsel!bentley!hoxna!houxm!mhuxj!mhuxr!ulysses!allegra!alice!mjs From: mjs@alice.UUCP (M.J.Shannon,Jr.) Newsgroups: net.lang.c Subject: Re: C++ anomaly (maybe) Message-ID: <3243@alice.UUCP> Date: Mon, 7-Jan-85 09:32:43 EST Article-I.D.: alice.3243 Posted: Mon Jan 7 09:32:43 1985 Date-Received: Tue, 8-Jan-85 03:41:05 EST References: <96@uwvax.UUCP> Organization: Bell Labs, Murray Hill Lines: 11 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