lua-users home
lua-l archive

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


> Hmm... just in case you want to extend the "function environment" to
> C-functions by replacing the private registry with private globals:

Is there any difference? Each function has a pseudo-index for the
registry (the "real" one), a pseudo-index for the global table (the
"real" one), and a pseudo-index for its own private table. We can call
it a "private registry" or a "private environment" (or a "private global
table" :), but the mechanism is the same.

-- Roberto