> I have recently began working on a mud using the rom source code
> and the first thing I saw when compiling it was a bunch of ambigous
> else warnings. I looked at a code called quickmud that didnt have
> those warnings but I am not using that code since I want to use the rom and 
> have it a little more custom. Anyway are those ambigous else fixes
> available anywhere or should I just compare to the quickmud code and
> make the same fixes as Flugh did. 

Basically, ambiguous else statements are saying that:

You have this:

if(/*some_statement*/)
  if(/*some_other_statement*/)
    do_something();
do_somethingelse();

And it's warning you that you should have:

if(/*some_statement*/)
{
  if(/*some_other_statement*/)
  {
    do_something();
  }
}

do_somethingelse();

So, you can see, this isn't exactly something people would just 
put out there as a "snippet" or text file, as it's pretty easy 
to go thru and fix them yourself, all your really gonna be adding is 
{}'s :)

Best of luck.


Reply via email to