memoize

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jan 4 05:25:26 PST 2011


On 1/4/11 12:30 AM, Guilherme Vieira wrote:
> Is there really need for ParameterTypeTuple? I figured this works:
>
>         template memoize(alias fun, uint maxSize = uint.max)
>
>         {
>
>              auto memoize(Args...)(Args args)
[snip]

That would create several caches, depending on calls with convertible 
arguments.

Andrei


More information about the Digitalmars-d mailing list