in reply to overrides?
The override you exhibit is, judging by it's syntax, a convenience sub which takes a list of key-value pairs. Presumably it sets those properties in an inherited object.
Usually, function overriding occurs when a new version of a function is arranged to be found first by the compiler. Perl first looks for a sub in the current namespace, then starts scanning the @ISA list of namespaces, then main::. It uses the first it finds. In this case, it may be done instead by changing coderefs within the object itself.
It sounds like you'd do well to start documenting the system as you go. 'All' you need to do is insert pod as you identify things in source. Good luck!
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: overrides?
by Aristotle (Chancellor) on May 31, 2002 at 14:51 UTC |