I understand, thanks for the info. Let me simplify my question: Using slots is there a reasonably straightforward way for me to intercept variable accesses in all methods within a class? This so that I can transparently redirect them to a dictionary lookup. Or am I going to have to override instVarNamed: and hope that works always?
On May 18, 2014, at 3:50 AM, Clément Bera <bera.clem...@gmail.com> wrote: > Hello, > > Actually slots are introduced so we can use them the next Pharo iteration > (Pharo 4). It is difficult to use as it is, you need to change a bit the > compiler so that it asks the class slots for field access byte code > generation (a field being typically an instance variable) and you also need > to improve the class builder in a way that you would have a class template > where you can set specific slot for each field. Then you can subclass slots > and use them. > > So I'd say there's a few work to do to use them, but if someone do this work, > it will be integrated for Pharo 4. > > Marcus, Camille, Martin, you know more than me about slots what do you think ? > > > 2014-05-17 23:36 GMT+02:00 Johan Fabry <jfa...@dcc.uchile.cl>: > > +1 on the question actually, I think it may help with some hacky stuff that I > am doing right now for my research :-) > > On May 17, 2014, at 5:10 PM, webwarrior <r...@webwarrior.ws> wrote: > > > So Pharo 3 is out, slots are listed in changelog, but how to use them? Any > > examples (those in paper don't work)? > > > > > > > > -- > > View this message in context: > > http://forum.world.st/Slots-tp4679183p4759385.html > > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > > > > > > > ---> Save our in-boxes! http://emailcharter.org <--- > > Johan Fabry - http://pleiad.cl/~jfabry > PLEIAD lab - Computer Science Department (DCC) - University of Chile > > > ---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile