[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) now available
- From: Tomas Guisasola Gorham <tomas@...>
- Date: Tue, 14 Jun 2011 12:55:31 -0300 (BRT)
On Tue, 14 Jun 2011, Roberto Ierusalimschy wrote:
Maybe it would be safer to be a compilation error, but this is tricky.
Consider the next, similar code:
@label: -- 1
@label: -- 2
@label: -- 0
Now, when the compiler sees label 0, label 2 and label 1 are out of
scope, so it makes no sense to raise an error.
It would hurt the compiler to stop on label 2 (raising an error)
to avoid confusion?
I am talking about the conflict between label 2 and label 0; assume
label 1 is not present. How the compiler can stop on label 2?
Sure! And I am talking about the confusion in my mind :-)
I understand your point and I think it wouldn't hurt to avoid
this situation at all with a compilation error.