On Fri, 7 Aug 1998, Mark A. Heilpern wrote: >On a side note, why would you ever want to enclose code within a "do { } >while (0);" block? If you've a legitimate need for a sub-block of code, >such as to introduce some very temporary local variables, just use your >braces and forget the do/while. FREE(x); becomes { free(x); x = NULL; }; I forget all of the reasons, but CircleMUD's CREATE() macro does the do...while too. -- George Greer, greerga@circlemud.org | Genius may have its limitations, but http://mouse.van.ml.org/ (not done) | stupidity is not thus handicapped. http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST