lua-users home
lua-l archive

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

On Fri, Apr 28, 2017 at 6:54 AM, Dirk Laurie <> wrote:
> Inspired by Adel's original post on the thread "Beginner to Programming",
> I have put together:
Really nice job. Added to favorites! Could you perhaps add some more
information to upvalue as I find it a very powerful feature? A

Access to value within a function to an item created outside of
function but adjacent in scope (and not global). Can be used to
encapsulate data, create singletons (I think?) and advanced reference
passing among other things.

I don't totally understand the feature yet (and am most likely wrong),
but that is the direction I would lean.