use Class::MOP::Immutable;
-our $VERSION = '0.49';
-our $AUTHORITY = 'cpan:STEVAN';
+BEGIN {
+ our $VERSION = '0.50';
+ our $AUTHORITY = 'cpan:STEVAN';
+
+ use XSLoader;
+ XSLoader::load( 'Class::MOP', $VERSION );
+
+ unless ($] < 5.009_005) {
+ no warnings 'redefine', 'prototype';
+ *check_package_cache_flag = \&mro::get_pkg_gen;
+ }
+}
{
# Metaclasses are singletons, so we cache them here.
determine as best it can if the C<$class_name> is loaded, it
is probably correct about 99% of the time.
+=item B<check_package_cache_flag ($pkg)>
+
+=item B<get_code_info ($code)>
+
=back
=head2 Metaclass cache functions
Yuval (nothingmuch) Kogman
+Scott (konobi) McWhirter
+
=head1 COPYRIGHT AND LICENSE
Copyright 2006, 2007 by Infinity Interactive, Inc.