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

Stewart Gordon smjg_1998 at yahoo.com
Sun May 13 12:11:05 PDT 2012


On 13/05/2012 18:53, Alex Rønne Petersen wrote:
<snip>
> Which forces you to:
>
> 1) use an AA lookup
> 2) use the GC
>
> Not an optimal solution IMHO.

But you're going to need to use the GC anyway.  How else are you going to store the string?

Memoization is a form of laziness.  This concept applies to the allocation of memory to 
hold the result as much as to the actual calculation of the result.

Stewart.


More information about the Digitalmars-d mailing list