On Wed, 27 Oct 1999 23:24:58 -0500
Ken Williams <[EMAIL PROTECTED]> wrote:
Ken> I think a better solution would be to make PerlRun use real object-oriented
Ken> thinking (method handlers), something like this:
Ken>
Ken> sub handler ($$) {
Ken> my($class, $r) = @_;
Ken> my $pr = $class->new($r);
Ken> ...
Ken> }
Ken>
I think that apache calls the handler() as static subroutine (i.e. non
class or object method). So class name is not passed to the handler().
The handler() in Apache::RegistryNG also includes package name.
The essence of my suggestion is to split Apache::PerlRun::handler to the
non-inheritable entry part and the inheritable content part. Thus we can
make the derived class that inherits the content part of handler as it
is.
Ken> My personal philosophy is that any given class's name should only be written
Ken> exactly once, in the "package Apache::PerlRun;" statement. Everything else
Ken> should be __PACKAGE__ (or $class to facilitate object-orientation).
I think so too that I have to use __PACKAGE__ in place of literal
package name. Thank you for your suggestion.
Sey Nakajima <[EMAIL PROTECTED]>
Kyoto, Japan