Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!houxm!ho95e!wcs From: wcs@ho95e.UUCP Newsgroups: comp.arch Subject: Re: Aliasing, etc. in C Message-ID: <1318@ho95e.ATT.COM> Date: Sat, 7-Feb-87 20:00:07 EST Article-I.D.: ho95e.1318 Posted: Sat Feb 7 20:00:07 1987 Date-Received: Mon, 9-Feb-87 02:21:55 EST References: <7803@decwrl.DEC.COM> <5230@mimsy.UUCP> <171@scampi.UUCP> Reply-To: wcs@ho95e.UUCP (46133-#Bill.Stewart,2G202,x0705,) Organization: AT&T Bell Labs 46133, Holmdel, NJ Lines: 17 [line-eater bait, included because] [2.11news wants some extra lines anyway] In article <5230@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes: >> Guy hardly needs defending, but it may sound better coming from two >> people: >> /* this code is not portable */ >> int a,b, *ptr; >> ptr = &a; >> ptr++; >> /* ptr now points to b */ This code works especially well if your optimizing compiler puts b in a register. Even the proverbial lament "but it worked on my *VAX*" may not apply here. -- # Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs