|
I don't know the compiler details.
Would it be too difficult to consider local declarations after a
conditional or unconditional 'continue' an error? Or collect all local
declarations (not initializations) at the beginning of a block? For
example, treat the given example code as if it was: repeat local x ... if something then continue end ... x = ... ... until something-with-x HE Javier Guerra escribió: On 2/25/08, Hugo Etchegoyen <hetchegoyen@hasar.com> wrote:I am a fan of 'continue' and I have already advocated for it before. Why should you cancel the scope rule? The given example is clearly a programming error. Why should programmers be protected from such errors?ok, so what should be the outcome of that error? - skip declaration/initialization? - skip loop test? - crash and burn? --
Ing.
Hugo Eduardo Etchegoyen Compañía
Hasar | Grupo
Hasar |