forever/nevermore
Silver
gaynor at romulus.rutgers.edu
Sat Sep 8 21:59:33 AEST 1990
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 at paul.rutgers.edu
More information about the Comp.lang.c
mailing list