Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!egrunix!schemers From: schemers@egrunix.UUCP (Roland Schemers) Newsgroups: comp.lang.c Subject: Re: Oh nooo! (gotos) Keywords: what if... Message-ID: <147@egrunix.UUCP> Date: 7 Sep 89 15:06:10 GMT References: <7598@goofy.megatest.UUCP> <12793@pur-ee.UUCP> <1461@atanasoff.cs.iastate.edu> Reply-To: schemers@unix.secs.oakland.edu.UUCP (Roland Schemers) Distribution: usa Organization: Oakland University, Rochester, MI Lines: 52 > While we are on the subject of loops, how do people feel about the > practice of using #define to "extend" the language? For example: > > #define loop for (;;) > #define exitloop break > > loop { > foo(); > if (bar()) exitloop; > } > I thought about using the same type of #defines, but what happens when you have the following: loop { .... while (x