lua-users home
lua-l archive

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


> Well yes. What I meant by context (bad word indeed) is more something like: "this is the last access"
> For instance, if you have something like "config.network.server.url" you need to know when the last access (i.e. network["url"] is done if you want to perform something specific afterwards

Whenever I see something like "I need the last time X was done", I
typically think of coroutines since they can maintain past state
encapsulated within a function as locals.  Perhaps there's a way to
model your problem with coroutines and metatables?

wes