1 Revision history for Perl extension Class-MOP.
5 - Applied an MS VC++ compilation fix from Taro Nishino. RT #48072
8 - The load_class function no longer returns a value, since it's return
9 value was confusing (either a metaclass object or a class name). It
10 either loads a class or dies trying. Addresses RT #45883. (Dave
13 0.92_01 Thu, Sep 10, 2009
15 - Backwards compatibility tweaks to XS for 5.8.1. (Goro Fuji)
18 - Make sure XS code handles magical scalars correctly. (Goro Fuji)
21 - Documented the immutable_options method, which is useful if you need
22 to make a class mutable temporarily, and then nede to restore
23 immutability. (Dave Rolsky)
26 - Deprecated features have been moved to their own module,
27 Class::MOP::Deprecated, for easier deprecation management. (Goro Fuji)
32 - Move get_method_map and its various scaffolding into Package. (hdp)
35 - Allow Class::MOP::Method->wrap to take a Class::MOP::Method object as
36 the first argument, rather than just a coderef. (doy)
38 * Class::MOP::Attribute
40 - Allow attribute names to be false (while still requiring them to be
44 * Class::MOP::Method::Wrapped
45 - Fixing variable usage issues with the patch from previous
46 version, not properly using lexicals in the for
50 Japan Perl Association has sponsored Goro Fuji to improve startup
51 performance of Class::MOP and Moose. These enhancements may break
52 backwards compatibility if you're doing (or using) complex
53 metaprogramming, so, as always, test your code!
54 http://blog.perlassociation.org/2009/07/jpa-sponsors-moose-class-mop-work.html
58 - Anonymous classes were not completely destroyed when they went
59 out of scope, leading to a memory leak. RT #47480. (Goro
63 - The get_method, has_method, and add_method methods no longer
64 use get_method_map. Method objects are instantiated
65 lazily. This significantly improves Class::MOP's load
69 - Inline fewer metaclass-level constructors since the ones we
70 have are perfectly fine. This reduces the number of string
73 * Class::MOP::Method::Wrapped
74 - If a method modifier set $_, this caused the modifier to blow
75 up, because of some weird internals. (Jeremy Stashewsky)
79 * Class::MOP::Class::Immutable::Trait
80 - Made the Trait act like a role with a bunch of "around"
81 modifiers, rather than sticking it in the inheritance
82 hierarchy. This fixes various problems that caused with
83 metaclass compatibility, which broke Fey::ORM.
86 - Allow a blessed code reference as the method body. Fixes a
87 problem interaction with MooseX::Types. (ash)
89 * Class::MOP::Instance
90 - add inline version of rebless_instance_structure. (doy)
91 - change inline_slot_access to use single quotes (gphat)
93 0.88 Tue, Jun 23, 2009
95 - Moved the __INSTANCE__ parameter to _construct_instance from
97 - Fixed some issues involving metaclasses of metaclasses and
100 0.87 Sun, Jun 21, 2009
102 - Made sure to always local-ize $@ and $SIG{__DIE__} before
103 calling an eval. Fixes RT #45973.
106 - Synced docs about immutability with the current reality (which
107 changed back in 0.82_01)
108 - Removed the immutable_transformer method, which had been
109 returning undef since 0.82_01 anyway.
112 - Got rid of tests which needed Moose and improved testing of
113 constructor/destructor inlining warnings. Fixes RT #47119.
115 0.86 Tue, Jun 16, 2009
117 - If you redefined a subroutine at runtime and then wrapped it
118 with a method modifier, the modifier could in some cases wrap
119 the original version of the subroutine. Fixes RT #46957.
122 - make_immutable issues a warning instead of overriding an
123 existing DESTROY method (Dylan William Hardison). Fixes RT
126 0.85 Sat, Jun 6, 2009
127 * Class::MOP::Attribute
128 - Allow default values to be Class::MOP::Methods. (Florian
130 - Test the above. (Rhesa Rozendaal)
131 - Tweak original commit so the intent matches the accepted
132 behavior (Nicholas Perez)
135 - Localize $SIG{__DIE__} inside _try_load_one_class (Sartak)
138 - Add direct_subclasses method (Sartak)
139 - Tests for subclasses and direct_subclasses (Sartak)
140 - subname is no longer used unconditionally in add_method, but
141 only if the code reference's name is '__ANON__' (nothingmuch)
142 - Add a hook for _superclasses_updated (Sartak)
145 - Remove long, old warning about possibly outdated modules
148 0.84 Tue, May 12, 2009
150 - Depend on Text::Exception 0.27 to avoid failing tests ond old
154 - Made is_class_loaded a little stricter. It was reporting that
155 a class was loaded if it merely had an @ISA variable in its
156 stash. Now it checks that the @ISA var has elements in it.
157 - Deprecate in_global_destruction and subname re-exporting
161 - Explicitly use Devel::GlobalDestruction and Sub::Name
164 * Class::MOP::Package
165 - Disable prototype mismatch warnings for add_package_symbol.
168 - Add test for finding methods from $meta->name->meta before immutable,
171 0.83 Mon, April 27, 2009
173 - Fix segfault when calling get_method_map on a metaclass for an empty
176 0.82_02 Fri, April 24, 2009
177 * Class::MOP::Method::Inlined
178 - Don't inline if the expected method is not defined at all (happens with
179 e.g. Moose::Object::_new is the expected method due to an overridden
182 - Some tests were trying to load Class::MOP::Immutable, which
183 was removed in 0.82_01.
185 0.82_01 Thu, April 23, 2009
186 * Class::MOP::Immutable (and others)
187 - Refactor the immutability system to use a pre-defined class
188 for the immutable metaclass of Class::MOP::Class::Immutable::$class
189 - Rather than generating methods into this class every time, use
190 a Trait (basic mixin) to supply the cached methods
191 - Remove the hack that returns the mutable metaclass for
192 metacircularity in order to provide consistent meta-metaclasses
193 for the Moose compatibility handling code
194 (mst broke it, nothingmuch fixed it)
196 0.82 Mon, April 20, 2009
198 - The deprecation wrappers for some renamed methods were not
199 passing arguments to the new method. (nothingmuch)
201 * Class::MOP::Immutable
202 - Warn during immutablization if the local class provides its own
203 constructor, to parallel the warning in Moose when a superclass
204 provides its own constructor (doy)
206 0.81 Tue, April 7, 2009
209 * Class::MOP::Instance
210 * Class::MOP::Attribute
211 * Class::MOP::Method::Accessor
212 * Class::MOP::Method::Constructor
213 - Include stack traces in the deprecation warnings introduced in
214 0.80_01. (Florian Ragwitz)
217 - Avoid c compiler warnings by declaring some unused function
218 arguments. (Florian Ragwitz)
220 0.80_01 Sun, April 5, 2009
222 - Make sure to preserve any compiler flags already defined in
223 Config.pm. Patch by Vincent Pit. RT #44739.
225 * Many methods have been renamed with a leading underscore, and a
226 few have been deprecated entirely. The methods with a leading
227 underscore are consider "internals only". People writing
228 subclasses or extensions to Class::MOP should feel free to
229 override them, but they are not for "public" use.
232 - construct_class_instance => _construct_class_instance (use new_object)
233 - construct_instance => _construct_instance (use new_object)
234 - check_metaclass_compatibility => _check_metaclass_compatibility
235 - create_meta_instance => _create_meta_instance (use get_meta_instance)
236 - clone_instance => _clone_instance (use clone_object)
237 - compute_all_applicable_methods is deprecated, use get_all_methods
238 - compute_all_applicable_attributes is deprecated, use get_all_attributes
240 - Class::MOP::Instance
241 - bless_instance_structure is deprecated and will be removed
245 - create has been renamed to _instantiate_module. This method
246 does not construct an object, it evals some code that
247 creates the relevant package in Perl's symbol table.
249 - Class::MOP::Method::Accessor
250 - initialize_body => _initialize_body (this is always called
251 when an object is constructed)
252 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
254 - Class::MOP::Method::Constructor
255 - initialize_body => _initialize_body (this is always called
256 when an object is constructed)
257 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
258 - attributes => _attributes
259 - meta_instance => _meta_instance
261 0.80 Wed, April 1, 2009
263 - Call user_class->meta in fewer places, with the eventual goal
264 of allowing the user to rename or exclude ->meta
265 altogether. Instead uses Class::MOP::class_of. (Sartak)
268 - New class_of function that should be used to retrieve a
269 metaclass. This is unlike get_metaclass_by_name in that it
270 accepts instances, not just class names. (Sartak)
273 - load_first_existing_class didn't actually load the first
274 existing class; instead, it loaded the first existing and
275 compiling class. It now throws an error if a class exists (in
276 @INC) but fails to compile. (hdp)
280 - we had some semi-buggy code that purported to provide a
281 HAS_ISAREV based on whether mro had get_isarev (due to an
282 oversight, it always returned 1). Since mro and MRO::Compat
283 have always had get_isarev, HAS_ISAREV was pointless. This
284 insight simplified the subclasses method by deleting the
285 pure-perl fallback. HAS_ISAREV is now deprecated. (Sartak)
287 0.79 Fri, March 29, 2009
288 * No changes from 0.78_02.
290 0.78_02 Thu, March 26, 2009
292 * Class::MOP::Immutable
293 - A big backwards-incompatible refactoring of the Immutable API,
294 and the make_immutable/make_mutable pieces of the Class
295 API. The core __PACKAGE__->meta->make_immutable API remains
296 the same, however, so this should only affect the most
300 - The XS code used a macro, XSPROTO, that's only in 5.10.x. This
301 has been fixed to be backwards compatible with 5.8.x.
304 - Add a hook for rebless_instance_away (Sartak)
305 - Use blessed instead of ref to get an instance's class name
306 in rebless_instance. (Sartak)
308 0.78_01 Wed, March 18, 2009
310 - Revised and reorganized all of the API documentation. All
311 classes now have (more or less) complete API documentation.
314 * Class::MOP::Instance
315 - Reblessing into a package that supports overloading wasn't
316 properly adding overload magic to the object due to a bug
317 in (at least) 5.8.8. We now use $_[1] directly which seems
318 to set the magic properly. (Sartak)
320 * Class::MOP::Attribute
321 - The process_accessors method is now private. A public alias
322 exists (and will stick around for a few releases), but it
323 warns that calling the public method is deprecated.
325 * Class::MOP::Method::Generated
326 - Removed the new and _new methods, since this is an abstract
327 base class, and all existing subclasses implement their own
331 - Stop is_class_loaded from thinking a class is loaded if it
332 only has an empty GV (Florian Ragwitz).
333 - Add a test for this (Yappo).
334 - Refactor get_all_package_symbols to allow short-circuiting
336 - Use this in is_class_loaded (Florian Ragwitz).
337 - Stop segfaulting when trying to get the name from a sub that's
338 still being compiled (Florian Ragwitz).
339 - Add tests for this (Florian Ragwitz).
340 - Prefix all public symbols with "mop_" (Florian Ragwitz).
341 - Clean up and simplify prehashing of hash keys (Florian Ragwitz).
342 - Simplify creating simple xs reader methods (Florian Ragwitz).
343 - Make everything compile with c++ compilers (Florian Ragwitz).
344 - Upgrade ppport.h from 3.14 to 3.17 (Florian Ragwitz).
347 - Remove optional test plans for tests depending on Sub::Name as
348 we have a hard dependency on Sub::Name anyway (Florian Ragwitz).
351 - Rebuild all c code if mop.h has changed (Florian Ragwitz)
353 0.78 Mon, February 23, 2009
354 * No changes from 0.77_01
356 0.77_01 Sun, February 22, 2009
358 - This package now requires its XS components. Not using
359 Sub::Name lead to different behavior and bugginess in the pure
360 Perl version of the code. A Moose test would fail when run
361 against the pure Perl version of this code.
363 * Class::MOP::Instance
364 - The inline_* methods now quote attribute names themselves, and
365 don't expect to receive a quoted value.
368 0.77 Sat, February 14, 2009
370 - Avoid assertion errors on debugging perls in is_class_loaded
374 - Fixed various corner cases where is_class_loaded incorrectly
375 returned true for a class that wasn't really loaded. (Dave
379 - Add get_all_method_names (Sartak)
380 - Add a wrapped_method_metaclass attribute (Florian Ragwitz)
382 * Class::MOP::Package
383 - Disable deprecated get_all_package_symbols in list
384 context. (Florian Ragwitz)
387 - Make sure we generate a BSD-compatible Makefile (Florian
391 - The misspelled "check_metaclass_compatability" method we've
392 kept around for backwards compat_i_bility will be removed in a
393 near future release. You've been warned.
395 0.76 Thu, January 22, 2009
396 * Class::MOP::Method::Generated
397 - Added new private methods to support code generation, which
398 are being used by Moose and can be used by MooseX
400 - Generated methods are now generated with a #line directive
401 reflecting the source of the generated method. (nothingmuch)
404 - Clarified documentation of methods that return
405 Class::MOP::Method objects. (doy)
408 - Clarified documentation of the metaclass cache methods. (Sartak)
411 - Add test showing how the xs Class::MOP::is_class_loaded can
412 be made to operate differently to the pure perl version (t0m)
414 0.75 Wed, December 31, 2008
416 - A class that was made immutable and then mutable could end up
417 sharing an immutable transformer object
418 (Class::MOP::Immutable) with other classes, leading to all
419 sorts of odd bugs. Reported by t0m. (Dave Rolsky)
421 0.74 Tue, December 25, 2008
423 - Add an xs implementation of Class::MOP::is_class_loaded (closes
424 RT#41862). Based on a patch by Goro Fuji. (Florian Ragwitz)
425 - Changed internals to make prehashing of hash keys easier and less
426 error-prone. (Florian Ragwitz)
428 - Fix documentation to show that around modifiers happen on both
429 sides of the modified method. (Dave Rolsky)
431 0.73 Tue, December 16, 2008
433 - Don't use Perl_mro_meta_init. It's not part of the public perl
434 api. Fixes failures to build on Win32 (RT #41750). (Florian
436 * t/082_get_code_info.t
437 - Add $^P &= ~0x200; (per Ovid's suggestion) in order to not
438 munger anonymous subs when under -d and so making the tests
439 succeed in that case.
441 0.72 Mon, December 8, 2008
442 * Class::MOP::Package
443 - Pass options to _new, so subclass' attributes can be
446 - In the docs, indicate that package_name and name are required
447 when calling ->wrap (Stefan O'Rear)
449 0.71_02 Fri, December 5, 2008
450 * Class::MOP::Immutable
451 - Added a new attribute, inlined_constructor, which is true if
452 the constructor was inlined.
453 * Class::MOP::Package
454 - Make get_all_package_symbols return a hash ref in scalar
455 context and deprecate calling it in list context with a
456 warning. (Florian Ragwitz)
458 - Various improvements and refactoring, making things more robust and
459 easier to maintain. (Florian Ragwitz)
461 0.71_01 Wed, December 3, 2008
463 - Add an "execute" method to invoke the body so
464 we can avoid using the coderef overload (Sartak)
465 * Class::MOP::Immutable
466 - When we memoize methods, get their results lazily
467 to remove some compile-time cost (Sartak)
468 - Small speedup from eliminating several method
471 - Some small internal tweaks to try to reduce the number of
472 times we call get_method_map when bootstrapping the MOP. This
473 might make loading Class::MOP (and Moose) a little
474 faster. (Dave Rolsky)
475 - Implemented an optional XS version of get_method_map. Mostly
476 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
477 help form Florian Ragwitz. (Dave Rolsky)
478 - Make the behaviour of of get_all_package_symbols (and
479 therefore get_method_map) consistent for stub methods. Report
480 and test by Goro Fuji (rt.cpan.org #41255). (Florian Ragwitz)
482 0.71 Wed November 26, 2008
485 - Actual package creation has moved upward from
486 Class to Module so that Moose roles can share
489 0.70_01 Mon, November 19, 2008
491 - Fixes for failures with blead (Florian Ragwitz)
492 - Silenced compiler warnings (Florian Ragwitz)
494 0.70 Fri, November 14, 2008
496 - Fixed an odd corner case where the XS version of
497 get_all_package_symbols could cause a segfault. This only
498 happened with inlined constants in Perl 5.10.0 (Florian
501 0.69 Fri, November 7, 2008
502 * Class::MOP::Method::Wrapped
503 - Added introspection methods for method modifiers (Dave Rolsky)
506 0.68 Fri October 24, 2008
508 - Make load_class require by file name instead of module name.
509 This stops confusing error messages when loading '__PACKAGE__'.
511 - Add load_one_class_of function to enable you to load one of a
512 list of classes, rather than having to call load_class multiple
513 times in an eval. (t0m)
515 0.67 Tue October 14, 2008
517 - Call a method on the class after setting the superclass list
518 so that we can get Perl to detect cycles before MRO::Compat
519 spirals into an infinite loop (sartak)
520 - Reported by Schwern, [rt.cpan.org #39001]
521 - In create(), pass unused options on to initialize()
522 - added test for this
524 0.66 Sat September 20, 2008
525 !! This release has an incompatible change regarding !!
526 introspection of a class's method with Class::MOP::Class !!
529 - We (us maintainers) now run all tests with XS and then without
530 XS, which should help us catch skew between the XS/pure Perl
534 ! The alias_method method has been deprecated. It now simply
535 calls add_method instead. There is no distinction between
536 aliased methods and "real" methods.
538 This means that methods added via alias_method now show up as
539 part of the class's method list/map. This is a backwards
540 incompatible change, but seems unlikely to break any
541 code. Famous last words. (Dave Rolsky)
544 - Fixed the spelling of "compatibility", but we still have a
545 "check_metaclass_compatability" method for backwards
548 0.65 Mon September 1, 2008
549 For those not following the series of dev releases, the changes
550 from 0.64 from 0.65 can mostly be summed up as a lot performance
551 improvements by nothingmuch, including new optional XS versions of
552 some methods. Also, Class::MOP now works _without_ any XS modules,
553 for sad systems without a compiler.
556 - Added name and package_name XS accessors, and make sure all
557 the XS and Perl versions work the same way. (Dave Rolsky)
560 - The XS versions of various methods just returned undef when
561 called class methods, rather than dying like the pure Perl
562 versions. (Dave Rolsky)
564 0.64_07 Fri August 29, 2008
566 - Silenced warnings that managed to break Moose tests when XS
567 was loaded. (Dave Rolsky)
568 - Some XS versions of methods were ignored because of typos in
569 MOP.xs. (Dave Rolsky)
571 0.64_06 Mon August 25, 2008
572 * Class::MOP (MOP.xs)
573 - Another MS VC++ fix, cannot declare a variable in the middle
574 of a scope (Taro Nishino).
576 0.64_05 Sun August 24, 2008
578 - None of the dev releases actually loaded the XS properly, but
579 we silently fell back to the pure Perl version of the
582 * Class::MOP (MOP.xs)
583 - Replaced some code that used functions not available on Visual
584 C++ with some Perl XS API bits (Dave Rolsky).
586 0.64_04 Sat August 23, 2008
588 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
590 * pod.t and pod_coveraget.t
591 - These are no longer shipped with the tarball because of bogus
592 failures from CPAN testers. (Dave Rolsky)
594 0.64_03 Thu August 21, 2008
595 * Class::MOP::Package
596 - Some (legit) code was misparsed by earlier 5.8.x
597 releases. (nothingmuch)
600 - Fix a constant in void context warning (nothingmuch)
602 0.64_02 Thu August 21, 2008
603 * Makefile.PL and Class::MOP
604 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
607 - Add missing prereqs that got lost in the switch away from
610 * Class::MOP::Instance
611 - New method - get_all_attributes (nothingmuch)
613 0.64_01 Wed August 20, 2008
615 - We now check to see if you have a compiler. If you don't, the
616 module installs without some XS bits, but will work the same
617 as with XS. This should make it easier to install on platforms
618 without a compiler (like Windows). (Dave Rolsky)
621 - Perl 6 style attribute naming replaced with sane style ('methods', not
622 '%!methods'). These changes should not impact any existing API uses.
626 - Quite a number of optimizations based on profiling, including
627 allowing constructors to take hash references instead of
628 hashes, duplicating some frequently used code in XS, and
629 making constructors immutable. These changes should not impact
630 any existing API uses. (nothingmuch)
633 - Constructors now respect the meta attributes of their subclasses,
634 facilitating MOP extensibility. More related changes will happen in the
635 next several releases. (nothingmuch)
638 - New method - get_all_methods, replaces the deprecated
639 compute_all_applicable_methods. get_all_attributes provided for
640 consistency (nothingmuch)
641 - New method - wrap_method was refactored out of get_method_map
643 - New API for meta instance invalidation - invalidate_meta_instance,
644 invalidate_meta_instances, add_dependent_meta_instance,
645 remove_dependent_meta_instance, called automatically when attribute
646 definitions change and allows notification of dependent subclasses.
649 0.64 Sun August 3, 2008
650 * Class::MOP::Immutable
651 - fixing subtle edge case in immutable when you
653 - clean up option processing (nothingmuch)
655 * Class::MOP::Instance
656 - inlined initialize slot didn't match
657 non-inlined (nothingmuch)
659 0.63 Mon July 7, 2008
661 - load_class will initialize a metaclass even if
662 the class is already loaded (sartak)
663 - load_class now returns the metaclass instance
664 instead of just 1 (sartak)
667 - better error messages (sartak and Dave Rolsky)
669 0.62 Wed June 18, 2008
670 - in is_class_loaded, recognize scalar references (as opposed to globs) in
671 the symbol table as methods (these are optimized constant subs)
673 0.61 Fri. June 13, 2008
674 - Okay, lets give this another try and see if PAUSE
675 recognizes it correct this time.
677 0.60 Thurs. Jun 12, 2008
678 - Fixed a version number issue by bumping all modules
681 0.59 Thurs. Jun 12, 2008
682 !! Several fixes resulting in yet another 25-30% speedup !!
685 - now stores the instance of the instance
686 metaclass to avoid needless recomputation
687 and deletes it when the cache is blown
688 - introduce methods to query Class::MOP::Class for
689 the options used to make it immutable as well as
690 the proper immutable transformer. (groditi)
692 * Class::MOP::Package
693 - {add, has, get, remove}_package_symbol all
694 now accept a HASH ref argument as well as the
695 string. All internal usages now use the HASH
699 - MOP.xs does sanity checks on the coderef
701 - is_class_loaded check now uses code that
702 was improved in Moose's ClassName type
704 - nonsensical (undef, empty, reference) class
705 names now throw a more direct error in
707 - tests for this and other aspects of
713 Class::MOP::Method::Wrapped
714 Class::MOP::Attribute
715 - switched usage of reftype to ref because
718 0.58 Thurs. May 29, 2008
719 (late night release engineering)--
721 - fixing the version is META.yml, no functional
722 changes in this release
724 0.57 Wed. May 28, 2008
725 !! Several speedups resulting in 20-25% speedups !!
726 || (thanks to konobi, groditi, mst & CataMoose) !!
729 - made get_method_map use list_all_package_symbols
730 instead of manually grabbing each symbol
731 - streamlining &initialize somewhat, since it gets
734 * Class::MOP::Package
735 - made {get, has}_package_symbol not call
737 - inlining a few calls to &name with
738 direct HASH access key access
739 - added get_all_package_symbols to fetch
740 a HASH of items based on a type filter
741 similar to list_all_package_symbols
742 - added tests for this
745 Class::MOP::Method::Constructor
746 Class::MOP::Method::Generated
747 Class::MOP::Method::Accessor
748 - added more descriptive error message to help
749 keep people from wasting time tracking an error
750 that is easily fixed by upgrading.
752 * Class::MOP::Immutable
753 - Don't inline a destructor unless the user actually
755 - added tests for this
757 0.56 Saturday, May 24, 2008
759 - we now get the &check_package_cache_flag
760 function from MRO::Compat
761 - All XS based functionality now has a
762 Pure Perl alternative
763 - the CLASS_MOP_NO_XS environment variable
764 can now be used to force non-XS versions
767 * Class::MOP::Attribute
768 - add has_read_method and has_write_method
769 - get_{read,write}_method_ref now wraps the
770 anon-sub ref in the method metaclass when
772 - added tests for this
774 * Class::MOP::Immutable
775 - added the ability to "wrap" methods when
776 making the class immutable
779 - now handling the edge case of ->meta->identifier
780 dying by wrapping add_package_symbol to specifically
781 allow for it to work.
782 - added tests for this
784 * Class::MOP::Attribute
786 Class::MOP::Immutable
787 - any time a method meta object is constructed
788 we make sure to pass the correct package and
789 method name information
792 Class::MOP::Method::Wrapped
793 Class::MOP::Method::Generated
794 Class::MOP::Method::Accessor
795 Class::MOP::Method::Consructor
796 - the &wrap constructor method now requires that a
797 'package_name' and 'name' attribute are passed. This
798 is to help support the no-XS version, and will
799 throw an error if these are not supplied.
800 - all these classes are now bootstrapped properly
801 and now store the package_name and name attributes
804 ~ Build.PL has been removed since the
805 Module::Install support has been removed
807 0.55 Mon. April 28, 2008
808 - All classes now have proper C3 MRO support
809 - added MRO::Compat as a dependency to allow
810 for the C3 MRO support to Just Work in all
814 - rebless_instance now returns the instance
815 it has just blessed, this is mostly to
817 - set the attr correctly in rebless_instance
818 when it has no init_arg
819 - tweaked &linear_isa and &class_precedence_list
820 to support c3 classes.
822 0.54 Fri. March, 14, 2008
825 - making sure that load_class never gets
826 passed a value from @_ or $_ to squash
827 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
830 - make_{immutable,mutable} now return 1
832 - improved error handling in ->create method
833 - rebless_instance now takes extra params which
834 will be used to populate values
835 - added tests for this
838 - localizing the Data::Dumper configurations so
839 that it does not pollute others (RT #33509)
845 Class::MOP::Attribute
846 - these classes no longer define their own ->meta,
847 but instead just inherit from Class::MOP::Object
849 * Class::MOP::Instance
850 Class::MOP::Immutable
851 - these classes now inherit from Class::MOP::Object
854 - fixed the filename length on several
855 test files so we install on VMS better
857 - fixed incorrect use of catdir when it
858 should be catfile (RT #32385)
860 0.53 Thurs. Feb. 14, 1008
861 ~~ several doc. fixes and updates ~~
864 Class::MOP::Method::Constructor
865 Class::MOP::Attribute
866 - making init_arg accept an undefined value
867 to indicate that no constructor args can
868 be passed (thanks to nothingmuch)
869 - added tests for this
870 - added attribute initializer attribute (rjbs)
873 - making this use the new init_arg => undef
874 feature instead of the silly hack from
875 before (thanks to nothingmuch)
877 0.52 Tues. Jan. 22, 2008
879 - fixed bug in rebless_instance
882 * Class::MOP::Method::Constructor
883 - removed assumptions about the existence of
886 0.51 Mon. Jan. 14, 2008
887 ~~~ some misc. doc. fixes ~~~
888 ~~ updated copyright dates ~~
891 - now sets the IS_RUNNING_ON_5_10
892 constant so that we can take advantage
893 of some of the nice bits of 5.10
896 - uses the IS_RUNNING_ON_5_10 flag to
897 optimize the &linearized_isa method
898 and avoid the hack/check for circular
899 inheritence in &class_precedence_list
900 - added rebless_instance method (Sartak)
901 - added tests for this
903 * Class::MOP::Immutable
904 - the immutable class now keeps track of
905 the transformer which immutablized it
907 * Class::MOP::Instance
908 - added rebless_instance_structure method (Sartak)
909 - added tests for this
911 0.50 Fri. Dec. 21, 2007
913 - fixed bug in immutable to make sure that
914 transformation arguments are saved
916 - added tests for this
918 * Class::MOP::Immutable
919 - fixed a bug (see above)
921 * Class::MOP::Attribute
924 0.49 Fri. Dec. 14, 2007
925 !! Class::MOP now loads 2 x faster !!
926 !! with XS speedups (thanks konobi) !!
929 - removed the dependency on B
930 - added two XS functions (thanks konobi)
931 - get_code_info($code) which replaces all
932 the B fiddling we were doing with
933 faster/leaner XS level fiddling
934 - check_package_cache_flag($pkg_name) which
935 returns the PL_sub_generation variable to
936 be used to help manage method caching.
939 In 5.10 or greater this will actually
940 use the mro::get_pkg_gen instead to give
941 even more accurate caching information.
942 blblack++ for that stuff :)
945 - added the &subclasses method (thanks rlb)
946 - added the update_package_cache_flag and
947 reset_package_cache_flag which help keep
948 track of when we need to re-fetch the
950 - Several small improvements to take advantage
951 of the new method map caching features
953 0.48 Mon. Nov. 26, 2007
954 * Class::MOP::Attribute
955 - fixed get_read/write_method to handle the
956 HASH ref case, which makes the
957 get_read/write_method_ref handle it too.
958 - added more tests for this
960 0.47 Sat. Nov. 24, 2007
961 * Class::MOP::Attribute
962 - fixed misspelling in get_write_method_ref
963 - added more tests for this
965 0.46 Fri. Nov. 23, 2007
967 - added the linearized_isa method instead of constantly
968 pruning duplicate classes (this will be even more
969 useful in the 5.10-compat version coming soon)
971 * Class::MOP::Attribute
972 - added the get_read_method_ref and get_write_method_ref
973 methods which allow you to retrieve a CODE ref which
974 can always be used to read or write an attribute.
976 0.45 Thurs. Nov. 13, 2007
977 * Class::MOP::Attribute
978 - Fix error message on confess (groditi)
980 0.44 Thurs. Nov. 13, 2007
981 - Apparently I didn't make dist correctly (groditi)
983 0.43 Thurs. Nov. 13, 2007
985 - Add support for the 'builder' attribute (groditi)
988 - optimise metaclass-already-exists check in
989 construct_class_instance (groditi)
990 - duplicate check into initialize to save a
991 call through (groditi)
993 * Class::MOP::Attribute
994 - Add support for the 'builder' attribute (groditi)
995 - Make predicates check for the existence of a value, not whether
996 it is defined (groditi)
998 * Class::MOP::Instance
999 - Make predicates check for the existence of a value, not whether
1000 it is defined (groditi)
1002 * Class::MOP::Method::Accessor
1003 - made this a subclass of Class::MOP::Method::Generated
1004 - removed the relevant attributes
1006 * Class::MOP::Method::Constructor
1007 - fixed the cached values we had to be more sane
1008 - made this a subclass of Class::MOP::Method::Generated
1009 - fixed generated constructor so it properly handles
1011 - added tests for this
1012 - added the option to allow for both inlined and
1013 non-inlined constructors.
1014 - Update inlined methods for builder and predicate changes (groditi)
1016 * Class::MOP::Method::Generated
1017 - added this class as an abstract base for the
1018 Class::MOP::Method::{Constructor,Accessor} classes
1019 - added tests for this
1022 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
1023 - Tests for new predicate behavior (and corrections to old tests) (groditi)
1026 - Update ArrayRef based class example to work with predicate changes
1028 0.42 Mon. July 16, 2007
1029 !!! Horray for mst, he fixed it !!!
1031 * Class::MOP::Package
1032 - alter symbol table handling to deal with 5.8.x and 5.9.x
1035 - Get rid of the crappy workaround from 0.40/41
1037 0.41 Sun. July 15, 2007
1039 Arghh!!! My TODO test didn't work, so I handle
1040 it manually now so that people can use this
1041 with 5.9.5/bleadperl without issue.
1043 0.40 Tues, July 3, 2007
1045 ~ marked a test in 003_methods.t as TODO
1046 for perl 5.9.5 (this test is irrelvant to
1047 the module functioning on 5.9.5 for the most
1050 0.39 Mon. June 18, 2007
1051 * Class::MOP::Immutable
1052 - added make_metaclass_mutable + docs (groditi)
1053 - removed unused variable
1054 - added create_immutable_transformer
1055 necessary for sane overloading of immutable behavior
1056 - tests for this (groditi)
1059 - Immutability can now be undone,
1060 added make_mutable + tests + docs (groditi)
1061 - Massive changes to the way Immutable is done
1062 for details see comments next to make_immutable
1063 This fixes a bug where custom metaclasses broke
1064 when made immutable. We are now keeping one immutable
1065 metaclass instance per metaclass instead of just one
1066 to prevent isa hierarchy corruption. Memory use will go
1067 up, but I suspect it will be neglible.
1068 - New tests added for this behavior. (groditi)
1070 0.38 Thurs. May 31, 2007
1071 ~~ More documentation updates ~~
1073 * Class::MOP::Package
1074 - we now deal with stub methods properly
1075 - added tests for this
1076 - fixed some tests failing on 5.9.5 (thanks blblack)
1078 * Class::MOP::Attribute
1079 - added get_read_method and get_write_method
1080 thanks to groditi for this code, tests
1082 - added tests and POD for this
1085 - fixed RT issue #27329, clone object now
1086 handles undef values correctly.
1087 - added tests for this
1088 - Corrected anon-class handling so that they
1089 will not get reaped when instances still
1090 exist which need to reference them. This is
1091 the correct behavior, hopefully this is an
1092 obscure enough feature that there are not too
1093 many work arounds out in the wild.
1094 - added tests for this by groditi
1095 - updated docs to explain this
1098 - load custom metaclasses automatically (thanks groditi)
1099 - added tests for this behavior
1101 0.37 Sat. March 10, 2007
1102 ~~ Many, many documentation updates ~~
1105 - added &load_class and &is_class_loaded
1106 - added tests and docs for these
1108 * Class::MOP::Attribute
1109 - default now checks the instance with defined to
1110 avoid setting off bool-overloads (found by Carl Franks)
1114 - bad name in a test, causing meaningless failuress.
1119 ~~ GLOBAL CHANGES ~~
1120 - All attribute names are now consistent and follow Perl 6
1121 style (prefixed with the sigil, and ! as the twigil for
1122 private attrs). This should not affect any code, unless
1123 you broke encapsulation, in which case, it is your problem
1126 !! Class::MOP::Class::Immutable has been removed
1128 * Class::MOP::Method::Constructor
1129 - this has been moved out of Class::MOP::Class::Immutable
1130 and is a proper subclass of Class::MOP::Method now.
1133 - this module now uses Class::MOP::Immutable for the
1134 immutable transformation instead of
1135 Class::MOP::Class::Immutable.
1137 + Class::MOP::Immutable
1138 - this module now controls the transformation from a mutable
1139 to an immutable version of the class. Docs for this will
1140 be coming eventually.
1143 0.36 Sun. Nov. 5, 2006
1145 - added a few 'no warnings' lines to keep annoying
1146 (and meaningless) warnings from chirping during
1150 - some more bootstrapping is now done on the new
1153 * Class::MOP::Class::Immutable
1155 - constructor generation is now handled by
1156 the Class::MOP::Method::Constructor class
1158 * Class::MOP::Method::Constructor
1159 - created this to handle constructor generation
1160 in Class::MOP::Class::Immutable
1162 * Class::MOP::Attribute
1164 - attributes now delegate to the
1165 Class::MOP::Method::Accessor to generate
1168 * Class::MOP::Method::Accessor
1169 - all accessor generation functions from
1170 Class::MOP::Attribute have been moved here
1172 0.35 Sat. Sept. 30, 2006
1174 * scripts/class_browser.pl
1175 - initial prototype of a class browser, more
1176 on this to come. Comments and patches are
1180 - All Class::MOP::* accessors are no longer
1181 re-generated in the bootstrap, instead
1182 they are aliased from the originals
1183 - fixed tests to reflect
1184 - added Class::MOP::Method (and its subclasses)
1186 - adjusted tests for this
1187 - added the Class::MOP::Instance attributes
1190 * Class::MOP::Method
1192 - methods are no longer blessed CODE refs
1193 but are actual objects which can be CODE-ified
1194 - adjusted tests to compensate
1195 - adjusted docs for this
1198 - changed how methods are dealt with to
1199 encapsulate most of the work into the
1200 &get_method_map method
1201 - made several adjustments for the change
1202 in Class::MOP::Method
1203 - &add_attribute now checks if you are adding
1204 a duplicate name, and properly removes the
1205 old one before installing the new one
1206 - added tests for this
1207 - adjusted docs for this
1209 * Class::MOP::Class::Immutable
1210 - added caching of &get_method_map
1211 - fixed issue with &get_package_symbol
1212 - cleaned up the methods that die (patch by David Wheeler)
1214 * Class::MOP::Package
1215 - added filtering capabilities to
1216 &list_all_package_symbols
1218 0.34 Sat. Aug. 26, 2006
1220 - added the %:methods attribute, which like
1221 the $:version and such just actually goes
1222 to the symbol table to get it's stuff.
1223 However, it makes the MOP more complete.
1225 - The &create method now requires that all
1226 but the package name now is passed in as
1227 named parameters. See docs for more info.
1228 - updated docs and tests for this
1230 * Class::MOP::Object
1231 - added &dump method to easily Data::Dumper
1235 - cleaned up the initialization of attributes
1236 which do not store things in the instance
1237 - added the %:methods attribute definition to
1240 ~ lots of misc. test cleanup
1242 0.33 Sat. Aug. 19, 2006
1244 - moved the metaclass cache out of here
1245 and it is now in Class::MOP itself.
1248 - moved all the metaclass cache stuff here
1249 - fixed all tests for this
1251 * Class::MOP::Attribute
1252 - reference values (other than CODE refs)
1253 are no longer allowed for defaults
1254 - added tests for this
1256 * Class::MOP::Package
1257 - fixed an issue with perl 5.8.1 and how it deals
1258 with symbol tables. The namespace hash is now
1259 always reloaded from the symbol table.
1261 ~ lots of misc. documentation cleanup
1263 0.32 Sat. Aug. 12, 2006
1264 + added Class::MOP::Object so that the
1265 metamodel is more complete (and closer
1266 to what Perl 6 will probably be).
1268 * Class::MOP::Package
1269 - refactored entire class, this is now
1270 the primary gateway between the metaclass
1271 and the Perl 5 symbol table
1272 - added many tests for this
1273 - this class is now a subclass of
1275 - added some tests to reflect this
1278 - refactored all symbol table access to
1279 use Class::MOP::Package methods instead
1281 * Class::MOP::Module
1282 - adding the $:version attribute in the bootstrap
1283 so that Module has a version as an attribute
1284 - see comment in Class::MOP for details
1285 - added the $:authority attribute to this module
1286 as well as an &identifier method, to bring us
1287 ever closer to Perl 6 goodness
1288 - I have added $AUTHORITY to all the modules
1289 - added tests for this
1291 * Class::MOP::Instance
1292 - added &deinitialize_slot for removing slots
1294 - added tests for this
1296 * Class::MOP::Attribute
1297 - added support for &deinitialize_slot for removing
1298 slots from an instance
1299 - added tests for this
1301 0.31 Sat. July 15, 2006
1304 - added &find_method_by_name to locate a method
1305 anywhere within the class hierarchy
1307 * Class::MOP::Attribute
1308 - added &set_value and &get_value for getting
1309 the value of the attribute for a particular
1312 0.30 Wed. July 5, 2006
1313 ---------------------------------------
1314 This is the first version of Class::MOP
1315 to introduce the immutable features which
1316 will be used for optimizating the MOP.
1317 This support should still be considered
1318 experimental, but moving towards stability.
1319 ---------------------------------------
1321 * Created Class::MOP::Class::Immutable
1323 * Created the Class::MOP::Package and
1324 Class::MOP::Module classes to more
1325 closely conform to Perl 6's meta-model
1328 - now inherits from Class::MOP::Module
1329 - several methods moved to ::Module and
1330 ::Package and now inherited
1331 - added tests for this
1333 * Class::MOP::Instance
1334 - added an is_inlinable method to allow other
1335 classes to check before they attempt to optimize.
1336 - added an inline_create_instance to inline
1337 instance creation (of course)
1340 - the Class::MOP::Class::*_package_variable
1341 methods are all now methods of Class::MOP::Package
1342 and called *_package_symbol instead. This is
1343 because they are now more general purpose symbol
1344 table manipulation methods.
1346 0.29_02 Thurs. June 22, 2006
1347 ++ DEVELOPER RELEASE ++
1349 - small change in &create so that it behaves
1350 properly when inherited
1351 - small fix to &clone_instance
1353 0.29_01 Fri. May 12, 2006
1354 ++ DEVELOPER RELEASE ++
1355 - This release works in combination with
1356 Moose 0.09_01, it is a developer release
1357 because it introduces a new instance
1358 sub-protocol and has not yet been
1362 - anon-classes are now properly garbage collected
1363 - added tests for this
1364 - improved method modifier wrapping
1366 * Class::MOP::Instance
1367 - added new instance protocol
1368 - added tests for this
1369 - changed all relevant modules and examples
1371 - Class::MOP::Attribute
1375 - you no longer need to specify the metaclass
1376 itself, if it is not there, Class::MOP::Class
1378 - updated tests for this
1381 - added ArrayBasedStorage example to show
1382 instance storage using ARRAY refs instead of
1384 - added tests for this
1385 - InsideOutClass is totally revised using the
1386 new instance protocol
1387 - added more tests for this
1389 0.26 Mon. April 24, 2006
1391 - added find_attribute_by_name method
1392 - added tests and docs for this
1393 - some small optimizations
1395 * Class::MOP::Attribute
1396 - some small optimizations
1398 0.25 Thurs. April 20, 2006
1400 - added create_anon_class for creating anonymous classes
1401 - added tests for this
1402 - added get_all_metaclasses, get_all_metaclass_names
1403 and get_all_metaclass_instances method to allow
1404 access to all the cached metaclass objects.
1405 - attribute slot initialization is now the responsibility
1406 of the attribute itself, and construct_instance now
1407 delegates appropriately
1409 * Class::MOP::Attribute
1410 - attribute slot initialization is now the responsibility
1411 of the attribute itself, so we added a method for it
1412 called initialize_instance_slot
1415 - adjusted all the examples to use the new attribute
1416 initialize_instance_slot method
1418 0.24 Tues. April 11, 2006
1420 - cleaned up how the before/after/around method
1421 modifiers get named with Sub::Name
1423 0.23 Thurs. March 30, 2006
1425 - fixed the way attribute defaults are handled
1426 during instance construction (bug found by chansen)
1428 * Class::MOP::Attribute
1429 - read-only accessors ('reader') will now die if
1430 passed more than one argument (attempting to write
1432 - added tests for this
1433 - adjusted all /example files to comply
1435 0.22 Mon. March 20, 2006
1437 - localized $@ in the *_package_variable functions
1438 because otherwise, it does ugly things in Moose.
1439 - added test case for this
1441 0.21 Wed. March 15, 2006
1443 - fixed issue where metaclasses are reaped from
1444 our cache in global destruction, and so are not
1445 available in DESTORY calls
1447 0.20 Thurs. March 2, 2006
1448 - removed the dependency for Clone since
1449 we no longer to deep-cloning by default.
1451 * Class::MOP::Method
1452 - added &package_name, &name and
1453 &fully_qualified_name methods, some of
1454 which were formerly private subs in
1457 * Class::MOP::Method::Wrapped
1458 - allows for a method to be wrapped with
1459 before, after and around modifiers
1460 - added tests and docs for this feature
1463 - improved &get_package_symbol
1464 - &version and &superclasses now use it
1465 - methods are now blessed into Class::MOP::Method
1467 - added methods to install CLOS-style method modifiers
1468 - &add_before_method_modifier
1469 - &add_after_method_modifier
1470 - &add_around_method_modifier
1471 - added tests and docs for these
1472 - added &find_next_method_by_name which finds the
1473 equivalent of SUPER::method_name
1475 0.12 Thurs. Feb 23, 2006
1476 - reduced the dependency on B, no need to always
1480 - added docs to the C3 method dispatch order test
1481 - fixed missing Algorithm::C3 dependency by making
1482 the test skip if it is not installed
1484 0.11 Mon Feb. 20, 2006
1486 - added example of changing method dispatch order to C3
1489 - changed how clone_instance behaves, it now only does a
1490 shallow clone (see docs for more details)
1491 - added docs and tests
1493 0.10 Tues Feb. 14, 2006
1494 ** This release was mostly about writing more tests and
1495 cleaning out old and dusty code, the MOP should now
1496 be considered "ready to use".
1498 - adding more tests to get coverage up a little higher,
1499 mostly testing errors and edge cases.
1500 - test coverage is now at 99%
1503 - no longer optionally exports to UNIVERSAL::meta or
1504 creates a custom metaclass generator, use the
1505 metaclass pragma instead.
1508 - fixed a number of minor issues which came up in the
1509 error/edge-case tests
1511 * Class::MOP::Attribute
1512 - fixed a number of minor issues which came up in the
1513 error/edge-case tests
1516 - fixing the AttributesWithHistory example, it was broken.
1518 0.06 Thurs Feb. 9, 2006
1520 - adding new metaclass pragma to make setting up the
1521 metaclass a little more straightforward
1524 - clean up bootstrapping to include more complete
1525 attribute definitions for Class::MOP::Class and
1526 Class::MOP::Attribute (accessors, readers, writers,
1527 etc.) ... it is redundant, but is useful meta-info
1531 - fixing minor meta-circularity issue with &meta, it
1532 is now more useful for subclasses
1533 - added &get_attribute_map as an accessor for the
1534 hash of attribute meta objects
1535 - &compute_all_applicable_attributes now just returns
1536 the attribute meta-object, rather than the HASH ref
1537 since all the same info can be gotten from the
1538 attribute meta-object itself
1539 - updated docs & tests to reflect
1540 - added &clone_instance method which does a deep clone
1541 of the instance structure created by &construct_instance
1542 - added docs & tests for this
1543 - added Clone as a dependency
1544 - added &new_object and &clone_object convience methods to
1545 return blessed new or cloned instances
1546 - they handle Class::MOP::Class singletons correctly too
1547 - added docs & tests for this
1548 - cleaned up the &constuct_class_instance so that it behaves
1549 more like &construct_instance (and managed the singletons too)
1550 - added the &check_metaclass_compatibility method to make sure
1551 that metaclasses are upward and downward compatible.
1552 - added tests and docs for this
1555 - adjusting code to use the &Class::MOP::Class::meta
1557 - adjusting code to use the metaclass pragma
1559 0.05 Sat Feb. 4, 2006
1561 - added the &attribute_metaclass and &method_metaclass
1562 attributes which contain a metaclass name to use for
1563 attributes/methods respectively
1566 - bootstrap additional attributes for Class::MOP::Class
1569 - adjusted the example code and tests to use the new
1570 &attribute_metaclass feature of Class::MOP::Class
1571 - added new example:
1574 0.04 Fri Feb. 3, 2006
1576 - some documentation suggestions from #perl6
1578 * Class::MOP::Attribute
1579 - improved error messages
1582 - added new examples:
1583 - AttributesWithHistory
1584 - ClassEncapsultedAttributes
1586 0.03 Fri Feb. 3, 2006
1587 - converted to Module::Build instead of EU::MM
1589 * Class::MOP::Attribute
1590 - refactored method generation code
1591 - attributes are now associated with class directly
1594 - refactored the InsideOut example to take advantage
1595 of the Class::MOP::Attribute refactoring
1596 - changed example files to .pod files and hide thier
1597 package names from PAUSE (I don't want to own these
1598 namespaces really, they are just examples)
1600 0.02 Thurs Feb. 2, 2006
1601 - moving examples from t/lib/* to examples/*
1602 - adding POD documentation to the examples
1604 0.01 Thurs Feb. 2, 2006