Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!sri-unix!hplabs!decwrl!star.dec.com!brandenberg From: brandenberg@star.dec.com.UUCP Newsgroups: comp.arch Subject: Aliasing, etc. in C (available no. of registers) Message-ID: <7803@decwrl.DEC.COM> Date: Sun, 25-Jan-87 22:37:38 EST Article-I.D.: decwrl.7803 Posted: Sun Jan 25 22:37:38 1987 Date-Received: Tue, 27-Jan-87 01:38:08 EST Sender: daemon@decwrl.DEC.COM Organization: Digital Equipment Corporation Lines: 24 [ From sun!gorodish!guy ] > From [?] >>God forbid, but there is probably some C program out there that relies >>on being able to: >> int a,b, *ptr; >> >> ptr = &a; >> ptr++; >> /* ptr now points to b */ > >No program that relies on that is correct C, so no compiler is >obliged to make them work. In fact, the sooner such programs *are* >prevented, the better off we'll all be. Oh? If this is aberrant coding, you might want to look at your varargs.h file whose operation relies on these assumptions; and this is in the ANSI proposal. - Monty ------------- Industry Standards: Advancing computer engineering to the lowest common denominator.