Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site tymix.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!sun!idi!oliveb!tymix!kanner From: kanner@tymix.UUCP (Herb Kanner) Newsgroups: net.lang.c Subject: A diagnostic "gotcha" Message-ID: <648@tymix.UUCP> Date: Wed, 5-Feb-86 16:48:35 EST Article-I.D.: tymix.648 Posted: Wed Feb 5 16:48:35 1986 Date-Received: Fri, 7-Feb-86 21:52:26 EST Organization: Tymnet Inc., Cupertino CA Lines: 11 A line of C code that looked like: node_mem[*dotp] = val & 0xff; produced the diagonistic "operands of + have incompatible types." The error was that *dotp was not of type int, and a[b] being a euphemism for *(a + b), it complained about the operands of addition. -- Herb Kanner McDonnell Douglas (TYMNET) ...!hplabs!oliveb!tymix!kanner