Re: Memoizing methods

2014-12-19 Thread Dicebot via Digitalmars-d-learn
On Friday, 19 December 2014 at 02:45:13 UTC, kyle wrote: If you memoize a method inside a class definition using std.functional.memoize is caching done in a per-object manner, or do all objects of this class share cached return values? Thank you. Memoize uses one hash table per symbol it is

Memoizing methods

2014-12-18 Thread kyle via Digitalmars-d-learn
If you memoize a method inside a class definition using std.functional.memoize is caching done in a per-object manner, or do all objects of this class share cached return values? Thank you.