[Issue 8743] Add support for memoizing class methods

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 2 03:12:33 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8743



--- Comment #9 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-02 03:12:47 PDT ---
(In reply to comment #8)
> (In reply to comment #6)
> > This mixin template is useful. A disadvantage is that it doesn't follow the API
> > (usage) of the Phobos memoize. So maybe it needs a different name, like
> > memoizeMethod, or something.
> 
> Yes. I couldn't make it have the same syntax because of the requirement of the
> `this` reference.

Also I'm unsure about recursive calls. Existing memoize allows you to
recursively call a memoized function.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list