Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!ucsd!usc!cs.utexas.edu!bcm!dimacs.rutgers.edu!aramis.rutgers.edu!remus.rutgers.edu!romulus.rutgers.edu!gaynor From: gaynor@romulus.rutgers.edu (Silver) Newsgroups: comp.lang.c Subject: forever/nevermore Message-ID: Date: 8 Sep 90 11:59:33 GMT Reply-To: gaynor@paul.rutgers.edu Organization: Rutgers Univ., New Brunswick, N.J. Lines: 12 I put together what I think is a cute macro. It's a forever loop statement with a way to break out of it, the nevermore statement, that defeats other forms of nesting by using a goto. However, I don't know how to make it nestable. Don't think it can without mucking up its simplicity (or perhaps not at all?), but I thought I'd bounce it off the net for advice. #define forever if (0) {NeVeRmOrE:;} else for (;;) #define nevermore goto NeVeRmOrE Mail is welcome, I'll summarize. Regards, [Ag] gaynor@paul.rutgers.edu