* The optimize_as option for type constraints has been deprecated. Use the
inline_as option to provide inlining code instead. (Dave Rolsky)
- * The Class::MOP::load_class and Class::MOP::is_class_loaded subroutines are
- now deprecated. Moose now uses Class::Load to provide this functionality,
- and you should as well. (Dave Rolsky)
+ [OTHER]
- * The Class::MOP::load_first_existing_class subroutine is also
- deprecated. This was removed from the docs a long time ago, but has never
- actually been deprecated. (Dave Rolsky)
+ * The Class::MOP::load_class and Class::MOP::is_class_loaded subroutines are
+ no longer documented, and will cause a deprecation warning in the
+ future. Moose now uses Class::Load to provide this functionality, and you
+ should as well. (Dave Rolsky)
2.0204 Thu, Aug 25, 2011
}
sub load_class {
- Class::MOP::Deprecated::deprecated(
- 'The Class::MOP::load_class subroutine is deprecated.'
- . ' Please use Class::Load instead.' );
goto &Class::Load::load_class;
}
sub load_first_existing_class {
- Class::MOP::Deprecated::deprecated(
- 'The Class::MOP::load_first_existing_class subroutine is deprecated.'
- . ' Please use Class::Load instead.' );
goto &Class::Load::load_first_existing_class;
}
sub is_class_loaded {
- Class::MOP::Deprecated::deprecated(
- 'The Class::MOP::is_class_loaded subroutine is deprecated.'
- . ' Please use Class::Load instead.' );
goto &Class::Load::is_class_loaded;
}
use warnings;
use Package::DeprecationManager -deprecations => {
- 'Class::MOP::load_class' => '2.0200',
- 'Class::MOP::load_first_existing_class' => '2.0200',
- 'Class::MOP::is_class_loaded' => '2.0200',
};
1;
will return a reference to a new container with the same contents as the
attribute's reference.
-=item C<Class::MOP::load_class> and C<Class::MOP::is_class_loaded> are deprecated
-
-We now use the L<Class::Load> module internally to provide this
-functionality. Using the Class::MOP subroutines will cause a deprecation
-warning, but will still work (via L<Class::Load).
-
-In addition, the C<Class::MOP::load_first_existing_class> sub has been
-deprecated. This was removed from the docs a long time ago, but has never
-actually warned.
-
=back
=head1 2.0100