in reply to Re^4: OO-Perl Question: How Do I get a List of derived Classes for a Base Class?
in thread OO-Perl Question: How Do I get a List of derived Classes for a Base Class?
How would the main loop know how to parse the SQL for "new" types of comments?
It's not that hard to see a comment format/regex combination that allows for that.
A regex of m[-- class:(\w+)] for instance would pick out a class name that can be combined with some root to require and instantiate the appropriate subclass if available.
|
|---|