As a concrete example, can you walk me through how you can take a function that expects to receive objects of a specific class, and instead give them objects of another class? In particular imagine that you are implementing something like NSProxy, and are replacing objects that had lived locally with distributed objects that now exist on a different machine that you access with remote code calls.
The objects have to be usable within a framework that is expecting the original kind of object, and you do not have access to source code or the ability to recompile.
Thanks.
The gist: byte codes are transformed ("weaved") on load. Its irrelevant whether you have the source or not.
http://my.safaribooksonline.com/0596006543/aspectjckbk-CHP-1...
In particular I am now convinced that it can do things that I had not previously realized were possible.
Anyway, the point that I was making is that virtual method dispatch coupled with virtual machines afford the possibility of models of indirection that are more efficient, more expressive, and formally declarable.
http://eclipse.org/aspectj/doc/released/progguide/index.html