[Bioperl-l] SUPER::initialize
Hilmar Lapp
hlapp@gmx.net
Sun, 13 Aug 2000 23:25:56 +0200
A note to the developers: I frequently encounter the following line in
_initialize() implementations:
my $make = $self->SUPER::_initialize;
Unless I'm misunderstanding something this is potentially dangerous. It
assumes that the inherited _initialize() does not take it's own arguments
- which may even be true at present, but can easily change. So, it should
rather read
my $make = $self->SUPER::_initialize(@args);
regardless of whether or not the inherited method expects any arguments
(if it doesn't, it won't hurt).
Please correct me if I'm wrong.
Hilmar
--
-----------------------------------------------------------------
Hilmar Lapp email: hlapp@gmx.net
NFI Vienna, IFD/Bioinformatics phone: +43 1 86634 631
A-1235 Vienna fax: +43 1 86634 727
-----------------------------------------------------------------