Re: bpl12 Suggestions

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 08/17/97

On Sun, 17 Aug 1997, Chris Jacobson wrote:

>On 8/17/97 9:26 PM, Jeremy Elson (jelson@CIRCLEMUD.ORG) stated:

>>I'll take a look at your system.  Unfortunately, I kind of like the
>>return-style more than the if-else-else-else-else..... style, because
>>I think the return style is easier to read and write.
>What about labels/goto?  Not sure if they are ANSI C tho...

Spaghetti, if taken to an extreme.

I just made it like this:

if (blah) {
  release_and_return 1;

Unfortunately, I don't know of a way to make an argument optional in macros
so it's "release_my_buffers(); return" which could cause problems for
single line if statements.  Other than that, you can just do:
and skip the #define altogether! :)

-- | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST