Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!caip!princeton!allegra!ulysses!mhuxr!mhuxn!ihnp4!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: net.lang.c Subject: Re: swap() macro Message-ID: <1005@ttrdc.UUCP> Date: Sun, 22-Jun-86 14:30:23 EDT Article-I.D.: ttrdc.1005 Posted: Sun Jun 22 14:30:23 1986 Date-Received: Tue, 24-Jun-86 05:00:52 EDT References: <1201@brl-smoke.ARPA> Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 25 In article <2595@ism780c.UUCP>, geoff@ism780c.UUCP (Geoff Kimbrough) writes: >I *don't* think this macro should be *used*, since it's got to be slower to >do all the extra pointer chasing and such than to break up your statement >into { swap(*a,*b); a++; b++; }. If you're concerned about having to >insert extra braces, I don't even want to tadc tg qgu 0V! !$ A bust ggtt`rgug` readafg af eftaredq ufcgeeefted prggrae wat`2w`ade sgeet`afg )(/*(<--(no(kurly brace */ Hey, try taking the bubble gum out of your mouth when you post :-). > if ( whatever ) { > hundreds of statements on several pages; > with 8 space tabs, the code dissappeared off the > right margin, and gradually walked back, until: > } > /* <-- no curly here either */ >Took me over an hour just to confirm that the braces matched up. What does this have to do with swap() macro? -- ------------------------------- Disclaimer: The views contained herein are | dan levy | yvel nad | my own and are not at all those of my em- | an engihacker @ | ployer or the administrator of any computer | at&t computer systems division | upon which I may hack. | skokie, illinois | -------------------------------- Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, vax135}!ttrdc!levy