lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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