Finding Closure

I feel this post is a bit misleading in its choice of words, specifically pertaining to Lua. Lua defines all functions as being a “Closure” in the source, so that kind of overlaps what you’re trying to say. Also it’s a bit unclear but I think what you’re talking about is upvalues (locals from another stack level) as closures. What you’d be referring to is probably “closed upvalues”, which is what an upvalue in Lua is called after it exits its stack level.

2 Likes