You can try to use a special slot for the 'methodDict' instVar of Behavior and implement another way of doing method wrappers through that slot class, but I am sure the VM won't be happy ;) On Tue, Mar 24, 2015 at 11:26 AM, Johan Fabry <jfabry@dcc.uchile.cl> wrote:
I would say that they are different although related. Slots are for the interception of accessing instance variables (for read and write), and method wrappers for the interception of accessing methods (for execution).
On Mar 24, 2015, at 09:02, phil@highoctane.be wrote:
I wondered how these two things are related.
Will slots be giving MWs facilities out of the box?
When should I use both?
Phil
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
-- Mariano http://marianopeck.wordpress.com