sub create_instance {
my $self = shift;
- my $instance = $self->bless_instance_structure([]);
+ my $instance = bless [], $self->_class_name;
$self->initialize_all_slots($instance);
return $instance;
}
# for compatibility
sub bless_instance_structure {
+ warn 'The bless_instance_structure method is deprecated.'
+ . " It will be removed in a future release.\n";
+
my ($self, $instance_structure) = @_;
bless $instance_structure, $self->_class_name;
}