lua-users home
lua-l archive

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


Peter Hill:
> Sort of do-it-yourself local variables?

Wim Couwenberg:
> "shared do-it-yourself static variables" [..?..] comes closer.

Thanks, that sounds like a good definition.

Hmm, maybe "setstatic()" might be a less confusing name to poor Lua4
converts?

> If I remember correctly, the globals system was designed (a/o) to support
> packages consisting of several modules (i.e. script files.)  By sharing a
> package-private globals table, these modules can share private data.

Doesn't the "_G" plus lexical-scope handle that? Hmm. I'll have to think
about that.

*cheers*
Peter Hill.