MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: hey, where did my `else' go?



Seth I. Rich writes:
>   if (...)
>     (do stuff)
>   else
>   endif;
> 
> But after I compiled it (no problems), I listed the code and my `else'
> is gone!

As it happens, the generated code for this is identical to that generated for
the same thing without the `else'.  Thus, the information that the `else' was
ever there has been completely lost and cannot be regenerated from nothing
during unparsing.  I agree that this is a bit of a shame, since the MOO doesn't
preserve your source code for you, but that's just the way it is... :-/

	Pavel


References:

Home | Subject Index | Thread Index