Re: strict.lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: strict.lua
- From: steve donovan <steve.j.donovan@...>
- Date: 2012年3月30日 08:52:52 +0200
On Fri, Mar 30, 2012 at 1:56 AM, Coda Highland <chighland@gmail.com> wrote:
> Well, the whole idea of doing it with the command line flag is that
> you can turn it on during development and then not have the overhead
> of having a metatable on _G in production use.
Ah, but strict.lua does not actually cost you anything, because _G's
__index only gets fired if the symbol is _not_ found, which is an
error condition.
steve d.