[Issue 19859] std.functional.memoize: Ability to clear the cache

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 12 12:01:54 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19859

--- Comment #1 from Aurelien Fredouelle <aurelien.fredouelle+dlang at gmail.com> ---
Just tried implementing this by making memoize a struct with a static opCall:
https://github.com/dlang/phobos/compare/master...AurelC2G:19859-memoize-cache-clear

However I ran into bug #18289, so this doesn't work as-is.

Any suggestions?

--


More information about the Digitalmars-d-bugs mailing list