I would look at AOP slightly differently, at least from a Perl point of view. It allows you to inject a bunch of arbitrary opcodes at any defined point in the optree.
This is all "how" not "why". This isn't describing AOP - it's describing a way AOP can be implemented. You could equally be talking about a method for implementing pre-conditions, post-conditions and class invariance in a design by contract system ;-)
Right now, we would do this using source filters, similar to what adrianh has done.
I haven't done anything with source filters - I mostly think they're evil ;-)
In reply to Re^7: Aspect-Oriented Programming: Couple of Short Examples
by adrianh
in thread Aspect-Oriented Programming: Couple of Short Examples
by chunlou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |