Getting the const-correctness of Object sorted once and for all

bearophile bearophileHUGS at lycos.com
Mon May 14 05:30:30 PDT 2012


Alex Rønne Petersen:

> But how would you memoize the value in the instance of the 
> object if it's const?

I opened a thread on such matters:
http://forum.dlang.org/thread/gtpdmrfektaygfmecupj@forum.dlang.org

-------------------

Jonathan M Davis:

>Caching and lazy evaluation _will_ be impossible in those 
>functions without breaking the type system.<

Take a look at the articles I've linked.

Bye,
bearophile


More information about the Digitalmars-d mailing list