lua-users home
lua-l archive

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


Bennett wrote:

> I don't know Lua well enough to answer for Lua, but in at
> least one other language (that I do know well:-) I can
> answer it by creating a lexical closure; let the anonymous
> function capture a lexical variable that holds a copy of
> the reference to the anonymous function.

I don't know how deep you'd have to get into the language in
question to answer this, but wouldn't the function be
considered non-anonymous if a variable contained a reference
to it?

-- 
Aaron