I should ask more questions :-). Now, this still doesn't answer the question on how to use this to memoize object methods. I think that what is closest to what I am looking for is this: http://wiki.tcl.tk/10779 http://wiki.tcl.tk/10981 I am use we can do something like that in Pharo, with some memoize method in Object playing around with thisContext. SomeClass>>someMethodWith: aSomething and: aSomethingElse Like self haltIf: aSymbol will break if aSymbol is in the call stack. Any guru having a way to do that? Phil On Tue, Nov 11, 2014 at 7:21 PM, Torsten Bergmann <astares@gmx.de> wrote:
Werner Kassens wrote:
Hi, now this a nice idea, especially the memoizedUsing:cache idea. i would really appreciate it, if that would be MIT licenced. werner
It already is, thanks to the permission of author John Cromartie who answered us today. Both methods are in a slice already:
Details in https://pharo.fogbugz.com/f/cases/14458
Thx T.