Re: Major Bug in Interpreter [Attn: Robert Craig]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Juergen Luethje wrote:
> 
> Patrick Barnes wrote:
> 
> <snip>
> 
> > I agree, code should be written unambiguously. Rob, it's not possible
> > to stop someone from creating unreadable code, but it would help the
> > Euphoria community if a warning was given for ambiguous things like
> > this - if a variable is modified in the same line as it is referenced.
> 
> I agree, too. Is it actually possible for Euphoria to detect such
> ambiguous code? If so, a warning IMHO would be very helpful. Are other
> languages capable of displaying a warning in such a situation? If not,
> that would give Euphoria another advantage over "normal" languages.

I could give a warning, but I think the false-alarm ratio would
be too high for it to be useful. There would often be
dozens or maybe hundreds of variables that might potentially
be overwritten as a result of a function call. It's theoretically
impossible to always know at compile-time whether a given variable
will actually be overwritten at run-time. In many cases the
potential will seem to be there, but in reality it will not happen.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu