[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Safe navigation operator
- From: Wesley Smith <wesley.hoke@...>
- Date: Mon, 23 Aug 2010 14:31:31 +0200
> 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