Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mimsy!eneevax!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Complex type ? Message-ID: <5839@brl-smoke.ARPA> Date: Thu, 7-May-87 01:02:53 EDT Article-I.D.: brl-smok.5839 Posted: Thu May 7 01:02:53 1987 Date-Received: Sat, 9-May-87 02:03:41 EDT References: <7264@brl-adm.ARPA> <1148@ius2.cs.cmu.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <1148@ius2.cs.cmu.edu> edw@ius2.cs.cmu.edu (Eddie Wyatt) writes: > int x; > complex y,z; > y = x + z; >Is it legal? Certainly it would be. A more interesting example is: x = z; If I were designing the extension I'd make this one illegal. (There would be "real part", "imaginary part", and "modulus" operators, and you'd have to specify which one you mean.) The point about each new feature interacting with the ones that already exist is valid and important.