Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.lang.c Subject: Re: Complex type / C++ Message-ID: <18539@sun.uucp> Date: Mon, 11-May-87 13:58:58 EDT Article-I.D.: sun.18539 Posted: Mon May 11 13:58:58 1987 Date-Received: Wed, 13-May-87 04:19:24 EDT References: <18829@ucbvax.BERKELEY.EDU> Sender: news@sun.uucp Lines: 15 Keywords: operator overload > How do languages like C++ and Ada deal with this? > Do they require the definition of some minimal set of operators? C++ permits you to overload any of the existing operators. The new operators have the same arity and precedence as the one that's being overloaded. (In other words, you can't change the syntax of the language.) > Is there a K&R of C++? Yup. It's called "The C++ Programming Language", is published by Addison-Wesley (as was K&R), and is in somewhat the same format as K&R (a pile of tutorial information with the Reference Manual stuck in the back). It's by Bjarne Stroustrup (no surprise there), and is ISBN 0-201-12078-X