lua-users home
lua-l archive

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


> This is a simple question I ask myself every time I see some Lua 4 code: why
> did it require a prefix '%' for upvalues? Was it an implementation
> constraint? A way to mark stuff that were compiled very inefficiently?

It was a way to mark that it was not accessing the real variable, but a
value frozen when the closure was created.

-- Roberto