March 8, 2012
1:13 p.m.
On Mar 8, 2012, at 12:21 PM, Noury Bouraqadi wrote:
Hi Sean,
Did you thought about: -using method wrappers? -object as methods. An object o put in a method dictionary instead of some method with selector #s. When #s is looked up, o receives the message run: selector with: args in: originalReceiver -proxies (look at Ghost) so you introduce an indirection to perform what ever action you want before performing the actual code
-> Compile the code to an RB AST, this then has all the interfaces needed to replace nodes or add nodes. You can then pretty print it back to source. Marcus -- Marcus Denker -- http://marcusdenker.de