[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is it possible to point out all the errors in an already written Lua script? Is there a IDE that could achieve this goal?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 27 Jan 2021 11:36:22 -0300
> Two errors, one warning. The actual error? A missing opening '{'. The
> conventional wisdom was to ignore all reported errors except for the first
> one.
My favorite is the reverse of that one, an extra open '{'. Often,
I write a new function and copy its header from the .c to the .h,
forgetting to change the '{' to ';'. In a large .c file, that simple
error makes gcc generate lots of warnings and errors. You have to
skip dozens of warnings just to get to the first error.
-- Roberto