Metaclasses vs. standard Python reflection?
Greg Ewing (using news.cis.dfn.de)
ckea25d02 at sneakemail.com
Mon May 5 23:29:02 EDT 2003
Hung Jung Lu wrote:
> Three operations are: (a) insert a before-hook when calling
> a function, (b) replace/overriding a function itself, (c) insert a
> after-hook when calling a function. The rest is all buzz words and
> syntactic sugar coating.
This sounds reminiscent of the Flavours system in Franz
Lisp. As well as overriding a method outright, a subclass
could also provide what were called a "before daemon"
and/or "after daemon".
Maybe those guys had invented AOP all those years ago
and didn't realise it?-)
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list