On 21.10.2009, at 11:13, Marcus Denker wrote:
On 21.10.2009, at 09:41, Adrian Lienhard wrote:
I've fixed this issue in Pharo a couple of months ago. CompiledMethods are not shared anymore, so methodClass returns the expected class. At the time I implemented traits (2004?), there were no method properties and hence sharing compiled methods worked -- of course except for super sends in which case the method was always recompiled (so the answer to Andreas' question below is b)).
We did a small paper for this years ESUG that describes the changes. It will be online at esug.org soon with all the other papers.
Here is the pdf: http://marcusdenker.de/publications/Duca09bTraitsAPI.pdf Marcus -- Marcus Denker -- marcus@2denker.de http://www.2denker.de