lua-users home
lua-l archive

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


2017-05-03 22:30 GMT+02:00 Russell Haley <russ.haley@gmail.com>:
> On Fri, Apr 28, 2017 at 6:54 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>> Inspired by Adel's original post on the thread "Beginner to Programming",
>> I have put together:
>>
>>      https://rawgit.com/dlaurie/lua-notes/master/glossary.html
>>
> Really nice job. Added to favorites! Could you perhaps add some more
> information to upvalue as I find it a very powerful feature? A
> suggestion:
>
> Upvalue
> 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.
>
> Russ

I have expanded the Upvalue entry, thanks. The site also contains an
essay "upvalues.html" that I wrote two years ago which goes way beyond
glossary level.

-- Dirk