Piers Cawley ([EMAIL PROTECTED]) wrote:
> [Further Hmmm...] It seems (on reading the docs) that
>
> use Module ();
>
> is exactly equivalent to
>
> BEGIN { require Module }
>
> which removes my objection to it. And gets us compile time checking.
>
> Note that, in the places where compile time loading is (potentially)
> really important, we should be using 'use base qw(Parent)', which will
> DTRT at compile time.
Sounds good. So we're settled on 'use Foo ();' and 'use base qw(Bar);'.
> Actually, to take advantage of any possible OO dispatch gains when
> Perl6 happens, we should probably be peppering our code with 'my Dog
> $spot' type constructions right now (there's a slight performance
> *penalty* now, but come Perl 6 we should get a larger performance gain
> and (possibly) some nice runtime exceptions thrown when the wrong sort
> of object gets passed...)
Let's cross that bridge when we come to it :-)
_______________________________________________
Perlunit-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/perlunit-devel