in reply to Re: Thorny design problem
in thread Thorny design problem

Your factory approach is clean, but it seems like you're just moving tlm's problem from one place to another. How is Church::new implemented?

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.

Replies are listed 'Best First'.
Re^3: Thorny design problem
by borisz (Canon) on Sep 08, 2005 at 06:58 UTC
    package Church; sub factory_create { my ( $class, %p ) = @_; my $new_class = ref($class) || $class . "::" . $p{firm}; eval "require $new_class" or die $@; return $new_class->new(%p); }
    Boris