On 11/11/07, Platonides Platonides@gmail.com wrote:
Tim Starling wrote:
I think that would be a recipe for bad coding style: copy, paste and change. Plus it would be fragile, you never know when a class is going to be loaded, it may well be loaded before you manage to override it. Much better to use dynamic class names and factory functions.
-- Tim Starling
So, what's the preferred method for overriding a core class? Edit its file to change the factory functions??
They would have hooks allowing arbitrary modification or wholesale replacement with descendants, I take it. Except they don't, currently, partly because factory functions aren't used for a lot of important classes (like Article).