Re: compile-time globals
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: compile-time globals
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2007年8月20日 10:58:32 -0300
> I am beginning to suspect that a comprehensive compile time feature to
> declare (and check for undeclared) global variables is simply not
> feasible. In other words, such checks can *in principle* only be
> performed at runtime.
>
> Is that suspicion correct?
"not feasible" may be too strong, but for sure a compile-time feature
to check global declarations in Lua is much harder than it may look
at first sight. (e.g.: what does it mean to "declare" a C funcion in
"compile time"?)
-- Roberto