lua-users home
lua-l archive

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


Mark Hamburg wrote:
The other thing this breaks is if one were using functions simply as
> unique values. There are plenty of other ways to achieve that,
> however.

All this thread is definitely above my head, but (assuming I understood correctly) removing the ability to use functions as table keys and unique identifiers looks confusing. Sounds as if functions would be degraded to "first class and a half" values.

Example: did I already call this function? I'd normally use "called[f] = true" to remember it. Or "called[f] = result" for memoization.

  Enrico