Getting the const-correctness of Object sorted once and for all
Chad J
chadjoan at __spam.is.bad__gmail.com
Tue May 15 12:15:16 PDT 2012
On 05/15/2012 02:49 PM, Christophe wrote:
> Chad J , dans le message (digitalmars.D:167461), a écrit :
>> An idea I thought of is to introduce a method local declaration that
>> allows a method to access instance-specific-state that isn't accessible
>> to the rest of the class:
>
> It is not good for caching results, since the cache often has to be
> erased when the object is modified.
I did outline a way to invalidate caches with this.
More information about the Digitalmars-d
mailing list