Make attributes private. Even though it can be inlined at no cost in
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
b817e248 2
72bc0a47 30.81
4 * Makefile.PL
5 - Make sure to preserve any compiler flags already defined in
6 Config.pm. Patch by Vincent Pit. RT #44739.
7
416d180f 80.80 Wed, April 1, 2009
164bf00b 9 * Class::MOP::*
86c265e1 10 - Call user_class->meta in fewer places, with the eventual goal
11 of allowing the user to rename or exclude ->meta
386655ca 12 altogether. Instead uses Class::MOP::class_of. (Sartak)
164bf00b 13
14 * Class::MOP
15 - New class_of function that should be used to retrieve a
86c265e1 16 metaclass. This is unlike get_metaclass_by_name in that it
17 accepts instances, not just class names. (Sartak)
164bf00b 18
44da14be 19 * Class::MOP
86c265e1 20 - load_first_existing_class didn't actually load the first
21 existing class; instead, it loaded the first existing and
22 compiling class. It now throws an error if a class exists (in
23 @INC) but fails to compile. (hdp)
44da14be 24
ffd09845 25 * Class::MOP
86c265e1 26 * Class::MOP::Class
ffd09845 27 - we had some semi-buggy code that purported to provide a
86c265e1 28 HAS_ISAREV based on whether mro had get_isarev (due to an
29 oversight, it always returned 1). Since mro and MRO::Compat
30 have always had get_isarev, HAS_ISAREV was pointless. This
31 insight simplified the subclasses method by deleting the
32 pure-perl fallback. HAS_ISAREV is now deprecated. (Sartak)
ffd09845 33
d7fe2508 340.79 Fri, March 29, 2009
35 * No changes from 0.78_02.
36
ee32b2fa 370.78_02 Thu, March 26, 2009
2c1f5348 38 * Class::MOP::Class
ea501fb6 39 * Class::MOP::Immutable
40 - A big backwards-incompatible refactoring of the Immutable API,
8e374ce5 41 and the make_immutable/make_mutable pieces of the Class
42 API. The core __PACKAGE__->meta->make_immutable API remains
43 the same, however, so this should only affect the most
44 guts-digging code.
ea501fb6 45
f8fa5c25 46 * XS code
47 - The XS code used a macro, XSPROTO, that's only in 5.10.x. This
48 has been fixed to be backwards compatible with 5.8.x.
c5f65de9 49
50 * Class::MOP::Class
51 - Add a hook for rebless_instance_away (Sartak)
52 - Use blessed instead of ref to get an instance's class name
53 in rebless_instance. (Sartak)
f8fa5c25 54
550.78_01 Wed, March 18, 2009
56 * Class::MOP::*
57 - Revised and reorganized all of the API documentation. All
58 classes now have (more or less) complete API documentation.
59
ea501fb6 60 * Class::MOP::Class
2c1f5348 61 * Class::MOP::Instance
62 - Reblessing into a package that supports overloading wasn't
63 properly adding overload magic to the object due to a bug
64 in (at least) 5.8.8. We now use $_[1] directly which seems
65 to set the magic properly. (Sartak)
9e9a0c94 66
45a183fb 67 * Class::MOP::Attribute
68 - The process_accessors method is now private. A public alias
69 exists (and will stick around for a few releases), but it
70 warns that calling the public method is deprecated.
71
0242e3f9 72 * Class::MOP::Method::Generated
73 - Removed the new and _new methods, since this is an abstract
74 base class, and all existing subclasses implement their own
75 constructors.
76
4e1aac01 77 * MOP.xs
78 - Stop is_class_loaded from thinking a class is loaded if it
79 only has an empty GV (Florian Ragwitz).
9e9a0c94 80 - Add a test for this (Yappo).
029b8969 81 - Refactor get_all_package_symbols to allow short-circuiting
82 (Florian Ragwitz).
9e9a0c94 83 - Use this in is_class_loaded (Florian Ragwitz).
029b8969 84 - Stop segfaulting when trying to get the name from a sub that's
85 still being compiled (Florian Ragwitz).
9e9a0c94 86 - Add tests for this (Florian Ragwitz).
d90a8e8f 87 - Prefix all public symbols with "mop_" (Florian Ragwitz).
ef7d3a1d 88 - Clean up and simplify prehashing of hash keys (Florian Ragwitz).
89 - Simplify creating simple xs reader methods (Florian Ragwitz).
4052ab27 90 - Make everything compile with c++ compilers (Florian Ragwitz).
08f3791a 91 - Upgrade ppport.h from 3.14 to 3.17 (Florian Ragwitz).
9e9a0c94 92
029b8969 93 * Tests
94 - Remove optional test plans for tests depending on Sub::Name as
90bd72aa 95 we have a hard dependency on Sub::Name anyway (Florian Ragwitz).
2c1f5348 96
ef7d3a1d 97 * Makefile.PL
98 - Rebuild all c code if mop.h has changed (Florian Ragwitz)
99
eca95e04 1000.78 Mon, February 23, 2009
47e735e0 101 * No changes from 0.77_01
eca95e04 102
d5f6699d 1030.77_01 Sun, February 22, 2009
4bfa5ddb 104 * Everything
105 - This package now requires its XS components. Not using
106 Sub::Name lead to different behavior and bugginess in the pure
d5f6699d 107 Perl version of the code. A Moose test would fail when run
108 against the pure Perl version of this code.
109
7ebb7bed 110 * Class::MOP::Instance
d5f6699d 111 - The inline_* methods now quote attribute names themselves, and
112 don't expect to receive a quoted value.
113
4bfa5ddb 114
8f3fba9b 1150.77 Sat, February 14, 2009
9c1dd83f 116 * MOP.xs
117 - Avoid assertion errors on debugging perls in is_class_loaded
118 (Florian Ragwitz)
119
3079a90e 120 * Class::MOP
121 - Fixed various corner cases where is_class_loaded incorrectly
122 returned true for a class that wasn't really loaded. (Dave
123 Rolsky)
124
668df632 125 * Class::MOP::Class
126 - Add get_all_method_names (Sartak)
9c1dd83f 127 - Add a wrapped_method_metaclass attribute (Florian Ragwitz)
668df632 128
a4bb3172 129 * Class::MOP::Package
c3c1917f 130 - Disable deprecated get_all_package_symbols in list
131 context. (Florian Ragwitz)
132
133 * Makefile.PL
134 - Make sure we generate a BSD-compatible Makefile (Florian
a4bb3172 135 Ragwitz)
136
8fd32374 137 * Class::MOP::Class
c5c8a954 138 - The misspelled "check_metaclass_compatability" method we've
8fd32374 139 kept around for backwards compat_i_bility will be removed in a
140 near future release. You've been warned.
141
8f3fba9b 1420.76 Thu, January 22, 2009
0b305028 143 * Class::MOP::Method::Generated
144 - Added new private methods to support code generation, which
145 are being used by Moose and can be used by MooseX
146 authors. (mst)
147 - Generated methods are now generated with a #line directive
148 reflecting the source of the generated method. (nothingmuch)
149
150 * Class::MOP::Class
151 - Clarified documentation of methods that return
152 Class::MOP::Method objects. (doy)
153
154 * Class::MOP
155 - Clarified documentation of the metaclass cache methods. (Sartak)
156
89f74416 157 * Tests
158 - Add test showing how the xs Class::MOP::is_class_loaded can
159 be made to operate differently to the pure perl version (t0m)
160
a0497979 1610.75 Wed, December 31, 2008
d89108ab 162 * Class::MOP::Class
163 - A class that was made immutable and then mutable could end up
164 sharing an immutable transformer object
165 (Class::MOP::Immutable) with other classes, leading to all
166 sorts of odd bugs. Reported by t0m. (Dave Rolsky)
167
c16a3087 1680.74 Tue, December 25, 2008
d14e06c3 169 * MOP.xs
170 - Add an xs implementation of Class::MOP::is_class_loaded (closes
171 RT#41862). Based on a patch by Goro Fuji. (Florian Ragwitz)
172 - Changed internals to make prehashing of hash keys easier and less
173 error-prone. (Florian Ragwitz)
174 * Class::MOP::Class
175 - Fix documentation to show that around modifiers happen on both
c6d9b1ff 176 sides of the modified method. (Dave Rolsky)
d14e06c3 177
2b5fafa1 1780.73 Tue, December 16, 2008
c0757d65 179 * MOP.xs
2b5fafa1 180 - Don't use Perl_mro_meta_init. It's not part of the public perl
181 api. Fixes failures to build on Win32 (RT #41750). (Florian
182 Ragwitz)
351e5029 183 * t/082_get_code_info.t
2b5fafa1 184 - Add $^P &= ~0x200; (per Ovid's suggestion) in order to not
185 munger anonymous subs when under -d and so making the tests
186 succeed in that case.
351e5029 187
8704ee6d 1880.72 Mon, December 8, 2008
6a6f7a2f 189 * Class::MOP::Package
190 - Pass options to _new, so subclass' attributes can be
191 initialized (Sartak)
aa906e42 192 * Class::MOP::Method
adb2b128 193 - In the docs, indicate that package_name and name are required
194 when calling ->wrap (Stefan O'Rear)
6a6f7a2f 195
6b5ac420 1960.71_02 Fri, December 5, 2008
62a0a0f3 197 * Class::MOP::Immutable
198 - Added a new attribute, inlined_constructor, which is true if
199 the constructor was inlined.
fdc6771b 200 * Class::MOP::Package
201 - Make get_all_package_symbols return a hash ref in scalar
202 context and deprecate calling it in list context with a
203 warning. (Florian Ragwitz)
204 * MOP.xs
205 - Various improvements and refactoring, making things more robust and
206 easier to maintain. (Florian Ragwitz)
62a0a0f3 207
34147f49 2080.71_01 Wed, December 3, 2008
25a5f083 209 * Class::MOP::Method
210 - Add an "execute" method to invoke the body so
211 we can avoid using the coderef overload (Sartak)
41885bab 212 * Class::MOP::Immutable
9ec62360 213 - When we memoize methods, get their results lazily
214 to remove some compile-time cost (Sartak)
41885bab 215 - Small speedup from eliminating several method
216 calls (Sartak)
05e183d1 217 * Class::MOP::Class
218 - Some small internal tweaks to try to reduce the number of
219 times we call get_method_map when bootstrapping the MOP. This
220 might make loading Class::MOP (and Moose) a little
221 faster. (Dave Rolsky)
52e5f955 222 - Implemented an optional XS version of get_method_map. Mostly
223 taken from a patch by Goro Fuji (rt.cpan.org #41080), with
224 help form Florian Ragwitz. (Dave Rolsky)
7ef2f4b7 225 - Make the behaviour of of get_all_package_symbols (and
226 therefore get_method_map) consistent for stub methods. Report
227 and test by Goro Fuji (rt.cpan.org #41255). (Florian Ragwitz)
25a5f083 228
96185d43 2290.71 Wed November 26, 2008
d652fbd5 230 * Class::MOP::Class
231 * Class::MOP::Module
232 - Actual package creation has moved upward from
233 Class to Module so that Moose roles can share
234 the code (Sartak)
235
88b8ac17 2360.70_01 Mon, November 19, 2008
237 * Class::MOP
238 - Fixes for failures with blead (Florian Ragwitz)
239 - Silenced compiler warnings (Florian Ragwitz)
240
2410.70 Fri, November 14, 2008
7329b9e2 242 * Class::MOP
243 - Fixed an odd corner case where the XS version of
9b1760fc 244 get_all_package_symbols could cause a segfault. This only
7329b9e2 245 happened with inlined constants in Perl 5.10.0 (Florian
246 Ragwitz)
7329b9e2 247
52c685d3 2480.69 Fri, November 7, 2008
b88aa2e8 249 * Class::MOP::Method::Wrapped
250 - Added introspection methods for method modifiers (Dave Rolsky)
251
252
4a9e02e8 2530.68 Fri October 24, 2008
dfbc4d4c 254 * Class::MOP
255 - Make load_class require by file name instead of module name.
256 This stops confusing error messages when loading '__PACKAGE__'.
257 (Florian Ragwitz)
5a24cf8a 258 - Add load_one_class_of function to enable you to load one of a
259 list of classes, rather than having to call load_class multiple
260 times in an eval. (t0m)
dfbc4d4c 261
5f5ee28a 2620.67 Tue October 14, 2008
2e7eb96b 263 * Class::MOP::Class
264 - Call a method on the class after setting the superclass list
265 so that we can get Perl to detect cycles before MRO::Compat
266 spirals into an infinite loop (sartak)
267 - Reported by Schwern, [rt.cpan.org #39001]
34d04967 268 - In create(), pass unused options on to initialize()
269 - added test for this
2e7eb96b 270
34d04967 2710.66 Sat September 20, 2008
fe05cbbe 272 !! This release has an incompatible change regarding !!
273 introspection of a class's method with Class::MOP::Class !!
274
9e9e6b8f 275 * Tests and XS
276 - We (us maintainers) now run all tests with XS and then without
277 XS, which should help us catch skew between the XS/pure Perl
e073e667 278 code. (Dave Rolsky)
9e9e6b8f 279
91b73829 280 * Class::MOP::Class
fe05cbbe 281 ! The alias_method method has been deprecated. It now simply
1190621f 282 calls add_method instead. There is no distinction between
283 aliased methods and "real" methods.
fe05cbbe 284
285 This means that methods added via alias_method now show up as
7143219b 286 part of the class's method list/map. This is a backwards
fe05cbbe 287 incompatible change, but seems unlikely to break any
288 code. Famous last words. (Dave Rolsky)
91b73829 289
155f0cba 290 * Class::MOP::Class
291 - Fixed the spelling of "compatibility", but we still have a
292 "check_metaclass_compatability" method for backwards
293 compatibility.
9e9e6b8f 294
94278c1b 2950.65 Mon September 1, 2008
296 For those not following the series of dev releases, the changes
8b9106cf 297 from 0.64 from 0.65 can mostly be summed up as a lot performance
94278c1b 298 improvements by nothingmuch, including new optional XS versions of
299 some methods. Also, Class::MOP now works _without_ any XS modules,
300 for sad systems without a compiler.
301
988fb42e 302 * Class::MOP::Method
303 - Added name and package_name XS accessors, and make sure all
304 the XS and Perl versions work the same way. (Dave Rolsky)
305
306 * MOP.xs
307 - The XS versions of various methods just returned undef when
308 called class methods, rather than dying like the pure Perl
309 versions. (Dave Rolsky)
310
13ac653a 3110.64_07 Fri August 29, 2008
400982e3 312 * Class::MOP
13ac653a 313 - Silenced warnings that managed to break Moose tests when XS
314 was loaded. (Dave Rolsky)
315 - Some XS versions of methods were ignored because of typos in
316 MOP.xs. (Dave Rolsky)
400982e3 317
13ac653a 3180.64_06 Mon August 25, 2008
9457b596 319 * Class::MOP (MOP.xs)
320 - Another MS VC++ fix, cannot declare a variable in the middle
321 of a scope (Taro Nishino).
322
3230.64_05 Sun August 24, 2008
2a755fe8 324 * Class::MOP
325 - None of the dev releases actually loaded the XS properly, but
326 we silently fell back to the pure Perl version of the
327 code. (Dave Rolsky)
328
329 * Class::MOP (MOP.xs)
330 - Replaced some code that used functions not available on Visual
331 C++ with some Perl XS API bits (Dave Rolsky).
332
f65af096 3330.64_04 Sat August 23, 2008
9ebc265d 334 * Class::MOP::Class
f65af096 335 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
336
337 * pod.t and pod_coveraget.t
338 - These are no longer shipped with the tarball because of bogus
339 failures from CPAN testers. (Dave Rolsky)
9ebc265d 340
df7077cd 3410.64_03 Thu August 21, 2008
342 * Class::MOP::Package
343 - Some (legit) code was misparsed by earlier 5.8.x
344 releases. (nothingmuch)
345
346 * Class::MOP
347 - Fix a constant in void context warning (nothingmuch)
348
09ed1ec5 3490.64_02 Thu August 21, 2008
64c591d3 350 * Makefile.PL and Class::MOP
4dde2f23 351 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
352
353 * Makefile.PL
354 - Add missing prereqs that got lost in the switch away from
355 Module::Install.
64c591d3 356
09ed1ec5 357 * Class::MOP::Instance
358 - New method - get_all_attributes (nothingmuch)
359
3600.64_01 Wed August 20, 2008
f125b31e 361 * Makefile.PL
362 - We now check to see if you have a compiler. If you don't, the
363 module installs without some XS bits, but will work the same
364 as with XS. This should make it easier to install on platforms
365 without a compiler (like Windows). (Dave Rolsky)
2e5c1a3f 366
40b3c18f 367 * many modules
7f799c13 368 - Perl 6 style attribute naming replaced with sane style ('methods', not
369 '%!methods'). These changes should not impact any existing API uses.
370 (nothingmuch).
371
372 * many modules
40b3c18f 373 - Quite a number of optimizations based on profiling, including
374 allowing constructors to take hash references instead of
375 hashes, duplicating some frequently used code in XS, and
376 making constructors immutable. These changes should not impact
377 any existing API uses. (nothingmuch)
378
7f799c13 379 * Many modules
380 - Constructors now respect the meta attributes of their subclasses,
381 facilitating MOP extensibility. More related changes will happen in the
382 next several releases. (nothingmuch)
383
40b3c18f 384 * Class::MOP::Class
7f799c13 385 - New method - get_all_methods, replaces the deprecated
386 compute_all_applicable_methods. get_all_attributes provided for
387 consistency (nothingmuch)
388 - New method - wrap_method was refactored out of get_method_map
389 (nothingmuch)
390 - New API for meta instance invalidation - invalidate_meta_instance,
391 invalidate_meta_instances, add_dependent_meta_instance,
392 remove_dependent_meta_instance, called automatically when attribute
393 definitions change and allows notification of dependent subclasses.
394 (nothingmuch)
40b3c18f 395
7202116b 3960.64 Sun August 3, 2008
84bc89b3 397 * Class::MOP::Immutable
7202116b 398 - fixing subtle edge case in immutable when you
84bc89b3 399 call ->meta (stevan)
7202116b 400 - clean up option processing (nothingmuch)
401
402 * Class::MOP::Instance
403 - inlined initialize slot didn't match
404 non-inlined (nothingmuch)
84bc89b3 405
f079b1eb 4060.63 Mon July 7, 2008
07940968 407 * Class::MOP
408 - load_class will initialize a metaclass even if
409 the class is already loaded (sartak)
410 - load_class now returns the metaclass instance
411 instead of just 1 (sartak)
6e1c8b63 412
f079b1eb 413 * elsewhere
414 - better error messages (sartak and Dave Rolsky)
415
ebce5539 4160.62 Wed June 18, 2008
1377b506 417 - in is_class_loaded, recognize scalar references (as opposed to globs) in
418 the symbol table as methods (these are optimized constant subs)
419
70ad0655 4200.61 Fri. June 13, 2008
421 - Okay, lets give this another try and see if PAUSE
422 recognizes it correct this time.
a023763e 423
4240.60 Thurs. Jun 12, 2008
809a26fc 425 - Fixed a version number issue by bumping all modules
426 to 0.60.
8c5cc782 427
4280.59 Thurs. Jun 12, 2008
d1dba7a1 429 !! Several fixes resulting in yet another 25-30% speedup !!
9b522fc4 430
431 * Class::MOP::Class
432 - now stores the instance of the instance
433 metaclass to avoid needless recomputation
8b49a472 434 and deletes it when the cache is blown
119f3a92 435 - introduce methods to query Class::MOP::Class for
436 the options used to make it immutable as well as
437 the proper immutable transformer. (groditi)
8b49a472 438
439 * Class::MOP::Package
440 - {add, has, get, remove}_package_symbol all
441 now accept a HASH ref argument as well as the
442 string. All internal usages now use the HASH
443 ref version.
f6dc69d2 444
445 * Class::MOP
446 - MOP.xs does sanity checks on the coderef
447 to avoid a segfault
26fcef27 448 - is_class_loaded check now uses code that
449 was improved in Moose's ClassName type
ab5e2f48 450 check (Sartak)
451 - nonsensical (undef, empty, reference) class
452 names now throw a more direct error in
453 load_class (Sartak)
3f7759c1 454 - tests for this and other aspects of
455 load_class (Sartak)
9b522fc4 456
457 * Class::MOP
458 Class::MOP::Class
459 Class::MOP::Method
460 Class::MOP::Method::Wrapped
461 Class::MOP::Attribute
462 - switched usage of reftype to ref because
463 it is much faster
464
352c364f 4650.58 Thurs. May 29, 2008
62781d9f 466 (late night release engineering)--
467
468 - fixing the version is META.yml, no functional
469 changes in this release
470
de0f9e1c 4710.57 Wed. May 28, 2008
d1dba7a1 472 !! Several speedups resulting in 20-25% speedups !!
de0f9e1c 473 || (thanks to konobi, groditi, mst & CataMoose) !!
474
ae234dc6 475 * Class::MOP::Class
476 - made get_method_map use list_all_package_symbols
477 instead of manually grabbing each symbol
de0f9e1c 478 - streamlining &initialize somewhat, since it gets
479 called so much
ae234dc6 480
481 * Class::MOP::Package
482 - made {get, has}_package_symbol not call
483 &namespace so much
de0f9e1c 484 - inlining a few calls to &name with
485 direct HASH access key access
ae234dc6 486 - added get_all_package_symbols to fetch
487 a HASH of items based on a type filter
488 similar to list_all_package_symbols
489 - added tests for this
490
32202ce2 491 * Class::MOP::Method
492 Class::MOP::Method::Constructor
493 Class::MOP::Method::Generated
494 Class::MOP::Method::Accessor
495 - added more descriptive error message to help
496 keep people from wasting time tracking an error
47e20ba2 497 that is easily fixed by upgrading.
32202ce2 498
d1dba7a1 499 * Class::MOP::Immutable
500 - Don't inline a destructor unless the user actually
501 needs one
502 - added tests for this
503
b4009dc1 5040.56 Saturday, May 24, 2008
11b56828 505 * Class::MOP
506 - we now get the &check_package_cache_flag
507 function from MRO::Compat
d7d3f3cb 508 - All XS based functionality now has a
509 Pure Perl alternative
6c34db07 510 - the CLASS_MOP_NO_XS environment variable
d7d3f3cb 511 can now be used to force non-XS versions
6c34db07 512 to always be used
11b56828 513
9e517e01 514 * Class::MOP::Attribute
515 - add has_read_method and has_write_method
d7d3f3cb 516 - get_{read,write}_method_ref now wraps the
def5c0b5 517 anon-sub ref in the method metaclass when
518 possible
519 - added tests for this
d7d3f3cb 520
5f3efd66 521 * Class::MOP::Immutable
d7d3f3cb 522 - added the ability to "wrap" methods when
5f3efd66 523 making the class immutable
d7d3f3cb 524
5f3efd66 525 * Class::MOP::Class
daf8d8bc 526 - now handling the edge case of ->meta->identifier
d7d3f3cb 527 dying by wrapping add_package_symbol to specifically
5f3efd66 528 allow for it to work.
529 - added tests for this
d7d3f3cb 530
531 * Class::MOP::Attribute
6c34db07 532 Class::MOP::Class
d7d3f3cb 533 Class::MOP::Immutable
6c34db07 534 - any time a method meta object is constructed
d7d3f3cb 535 we make sure to pass the correct package and
6c34db07 536 method name information
d7d3f3cb 537
6c34db07 538 * Class::MOP::Method
539 Class::MOP::Method::Wrapped
540 Class::MOP::Method::Generated
541 Class::MOP::Method::Accessor
d7d3f3cb 542 Class::MOP::Method::Consructor
543 - the &wrap constructor method now requires that a
544 'package_name' and 'name' attribute are passed. This
545 is to help support the no-XS version, and will
546 throw an error if these are not supplied.
6c34db07 547 - all these classes are now bootstrapped properly
548 and now store the package_name and name attributes
d7d3f3cb 549 correctly as well
550
551 ~ Build.PL has been removed since the
552 Module::Install support has been removed
9e517e01 553
8adaad20 5540.55 Mon. April 28, 2008
555 - All classes now have proper C3 MRO support
556 - added MRO::Compat as a dependency to allow
557 for the C3 MRO support to Just Work in all
558 perl versions
d7d3f3cb 559
830b326c 560 * Class::MOP::Class
d7d3f3cb 561 - rebless_instance now returns the instance
562 it has just blessed, this is mostly to
830b326c 563 facilitate chaining
d7d3f3cb 564 - set the attr correctly in rebless_instance
6e2a700f 565 when it has no init_arg
77a143ba 566 - tweaked &linear_isa and &class_precedence_list
567 to support c3 classes.
830b326c 568
e0db39d2 5690.54 Fri. March, 14, 2008
8861fab2 570 * Class::MOP
214e4bd7 571 metaclass.pm
8861fab2 572 - making sure that load_class never gets
d7d3f3cb 573 passed a value from @_ or $_ to squash
8861fab2 574 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
575
09c6e1d2 576 * Class::MOP::Class
577 - make_{immutable,mutable} now return 1
578 (cause Sartak asked)
d7b2249e 579 - improved error handling in ->create method
d7d3f3cb 580 - rebless_instance now takes extra params which
581 will be used to populate values
214e4bd7 582 - added tests for this
d7d3f3cb 583
acce7fd6 584 * Class::MOP::Object
d7d3f3cb 585 - localizing the Data::Dumper configurations so
586 that it does not pollute others (RT #33509)
587
d7b2249e 588 * Class::MOP::Class
589 Class::MOP::Package
590 Class::MOP::Module
591 Class::MOP::Method
592 Class::MOP::Attribute
d7d3f3cb 593 - these classes no longer define their own ->meta,
594 but instead just inherit from Class::MOP::Object
595
d7b2249e 596 * Class::MOP::Instance
d7d3f3cb 597 Class::MOP::Immutable
d7b2249e 598 - these classes now inherit from Class::MOP::Object
d7d3f3cb 599
10dd437b 600 * t/
d7d3f3cb 601 - fixed the filename length on several
10dd437b 602 test files so we install on VMS better
603 (RT #32295)
d7d3f3cb 604 - fixed incorrect use of catdir when it
10dd437b 605 should be catfile (RT #32385)
606
2491730f 6070.53 Thurs. Feb. 14, 1008
7a536297 608 ~~ several doc. fixes and updates ~~
d7d3f3cb 609
0c6f4c4a 610 * Class::MOP::Class
611 Class::MOP::Method::Constructor
612 Class::MOP::Attribute
613 - making init_arg accept an undefined value
d7d3f3cb 614 to indicate that no constructor args can
0c6f4c4a 615 be passed (thanks to nothingmuch)
616 - added tests for this
339264d8 617 - added attribute initializer attribute (rjbs)
d7d3f3cb 618
0c6f4c4a 619 * Class::MOP.
620 - making this use the new init_arg => undef
d7d3f3cb 621 feature instead of the silly hack from
0c6f4c4a 622 before (thanks to nothingmuch)
ad074154 623
3e8e8f07 6240.52 Tues. Jan. 22, 2008
2a2b8458 625 * Class::MOP::Class
d7d3f3cb 626 - fixed bug in rebless_instance
2a2b8458 627 (discovered by ash)
628
629 * Class::MOP::Method::Constructor
d7d3f3cb 630 - removed assumptions about the existence of
2a2b8458 631 a &meta method
632
656ce3ba 6330.51 Mon. Jan. 14, 2008
69e3ab0a 634 ~~~ some misc. doc. fixes ~~~
635 ~~ updated copyright dates ~~
d7d3f3cb 636
c1d5345a 637 * Class::MOP
d7d3f3cb 638 - now sets the IS_RUNNING_ON_5_10
c1d5345a 639 constant so that we can take advantage
640 of some of the nice bits of 5.10
d7d3f3cb 641
c1d5345a 642 * Class::MOP::Class
d7d3f3cb 643 - uses the IS_RUNNING_ON_5_10 flag to
644 optimize the &linearized_isa method
c1d5345a 645 and avoid the hack/check for circular
d7d3f3cb 646 inheritence in &class_precedence_list
3d9e4646 647 - added rebless_instance method (Sartak)
648 - added tests for this
d7d3f3cb 649
650 * Class::MOP::Immutable
651 - the immutable class now keeps track of
c1d5345a 652 the transformer which immutablized it
69e3ab0a 653
3d9e4646 654 * Class::MOP::Instance
655 - added rebless_instance_structure method (Sartak)
656 - added tests for this
657
a780a6ff 6580.50 Fri. Dec. 21, 2007
6ff0d647 659 * Class::MOP::Class
d7d3f3cb 660 - fixed bug in immutable to make sure that
661 transformation arguments are saved
6ff0d647 662 correctly (mst)
b6bcc3a5 663 - added tests for this
d7d3f3cb 664
6ff0d647 665 * Class::MOP::Immutable
666 - fixed a bug (see above)
d7d3f3cb 667
6ff0d647 668 * Class::MOP::Attribute
669 - some doc updates
670
30b8af04 6710.49 Fri. Dec. 14, 2007
b6bcc3a5 672 !! Class::MOP now loads 2 x faster !!
30b8af04 673 !! with XS speedups (thanks konobi) !!
d7d3f3cb 674
30b8af04 675 * Class::MOP
676 - removed the dependency on B
677 - added two XS functions (thanks konobi)
678 - get_code_info($code) which replaces all
679 the B fiddling we were doing with
680 faster/leaner XS level fiddling
d7d3f3cb 681 - check_package_cache_flag($pkg_name) which
682 returns the PL_sub_generation variable to
30b8af04 683 be used to help manage method caching.
d7d3f3cb 684
685 NOTE:
686 In 5.10 or greater this will actually
687 use the mro::get_pkg_gen instead to give
688 even more accurate caching information.
30b8af04 689 blblack++ for that stuff :)
d7d3f3cb 690
6c9f390e 691 * Class::MOP::Class
692 - added the &subclasses method (thanks rlb)
d7d3f3cb 693 - added the update_package_cache_flag and
694 reset_package_cache_flag which help keep
695 track of when we need to re-fetch the
696 method map.
30b8af04 697 - Several small improvements to take advantage
698 of the new method map caching features
4c4a6c41 699
1b8b3e09 7000.48 Mon. Nov. 26, 2007
d14f6cbe 701 * Class::MOP::Attribute
d7d3f3cb 702 - fixed get_read/write_method to handle the
703 HASH ref case, which makes the
d14f6cbe 704 get_read/write_method_ref handle it too.
705 - added more tests for this
706
742fb371 7070.47 Sat. Nov. 24, 2007
708 * Class::MOP::Attribute
709 - fixed misspelling in get_write_method_ref
78d9bb38 710 - added more tests for this
742fb371 711
fe7c0b15 7120.46 Fri. Nov. 23, 2007
b7bdffc3 713 * Class::MOP::Class
d7d3f3cb 714 - added the linearized_isa method instead of constantly
715 pruning duplicate classes (this will be even more
b7bdffc3 716 useful in the 5.10-compat version coming soon)
d7d3f3cb 717
5da16d1b 718 * Class::MOP::Attribute
719 - added the get_read_method_ref and get_write_method_ref
d7d3f3cb 720 methods which allow you to retrieve a CODE ref which
5da16d1b 721 can always be used to read or write an attribute.
b7bdffc3 722
1a5cc82e 7230.45 Thurs. Nov. 13, 2007
232c4e13 724 * Class::MOP::Attribute
725 - Fix error message on confess (groditi)
726
544143b2 7270.44 Thurs. Nov. 13, 2007
728 - Apparently I didn't make dist correctly (groditi)
729
c0aeeb91 7300.43 Thurs. Nov. 13, 2007
b08fd50c 731 * Class::MOP
1d68af04 732 - Add support for the 'builder' attribute (groditi)
733
b08fd50c 734 * Class::MOP::Class
d7d3f3cb 735 - optimise metaclass-already-exists check in
b08fd50c 736 construct_class_instance (groditi)
d7d3f3cb 737 - duplicate check into initialize to save a
b08fd50c 738 call through (groditi)
739
1d68af04 740 * Class::MOP::Attribute
741 - Add support for the 'builder' attribute (groditi)
d7d3f3cb 742 - Make predicates check for the existence of a value, not whether
b08fd50c 743 it is defined (groditi)
8768ecf3 744
745 * Class::MOP::Instance
d7d3f3cb 746 - Make predicates check for the existence of a value, not whether
b08fd50c 747 it is defined (groditi)
8768ecf3 748
d7d3f3cb 749 * Class::MOP::Method::Accessor
565f0cbb 750 - made this a subclass of Class::MOP::Method::Generated
751 - removed the relevant attributes
752
753 * Class::MOP::Method::Constructor
754 - fixed the cached values we had to be more sane
755 - made this a subclass of Class::MOP::Method::Generated
d7d3f3cb 756 - fixed generated constructor so it properly handles
565f0cbb 757 subclasses now.
758 - added tests for this
d7d3f3cb 759 - added the option to allow for both inlined and
565f0cbb 760 non-inlined constructors.
b08fd50c 761 - Update inlined methods for builder and predicate changes (groditi)
565f0cbb 762
763 * Class::MOP::Method::Generated
d7d3f3cb 764 - added this class as an abstract base for the
565f0cbb 765 Class::MOP::Method::{Constructor,Accessor} classes
766 - added tests for this
767
b08fd50c 768 *t/
769 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
770 - Tests for new predicate behavior (and corrections to old tests) (groditi)
771
772 *examples/
773 - Update ArrayRef based class example to work with predicate changes
774
367183c4 7750.42 Mon. July 16, 2007
9195ddff 776 !!! Horray for mst, he fixed it !!!
777
92af7fdf 778 * Class::MOP::Package
779 - alter symbol table handling to deal with 5.8.x and 5.9.x
d7d3f3cb 780
92af7fdf 781 * t/
9195ddff 782 - Get rid of the crappy workaround from 0.40/41
92af7fdf 783
829f7554 7840.41 Sun. July 15, 2007
785 * t/
786 Arghh!!! My TODO test didn't work, so I handle
d7d3f3cb 787 it manually now so that people can use this
829f7554 788 with 5.9.5/bleadperl without issue.
789
1d7205b8 7900.40 Tues, July 3, 2007
9f88b8ff 791 * t/
d7d3f3cb 792 ~ marked a test in 003_methods.t as TODO
793 for perl 5.9.5 (this test is irrelvant to
794 the module functioning on 5.9.5 for the most
1d7205b8 795 part anyway)
9f88b8ff 796
28acb786 7970.39 Mon. June 18, 2007
b817e248 798 * Class::MOP::Immutable
0ac992ee 799 - added make_metaclass_mutable + docs (groditi)
800 - removed unused variable
d9586da2 801 - added create_immutable_transformer
802 necessary for sane overloading of immutable behavior
d7d3f3cb 803 - tests for this (groditi)
0ac992ee 804
805 * Class::MOP::Class
806 - Immutability can now be undone,
807 added make_mutable + tests + docs (groditi)
04dd7510 808 - Massive changes to the way Immutable is done
809 for details see comments next to make_immutable
810 This fixes a bug where custom metaclasses broke
d7d3f3cb 811 when made immutable. We are now keeping one immutable
812 metaclass instance per metaclass instead of just one
04dd7510 813 to prevent isa hierarchy corruption. Memory use will go
814 up, but I suspect it will be neglible.
815 - New tests added for this behavior. (groditi)
7c90a1a8 816
c0fcd6ab 8170.38 Thurs. May 31, 2007
823a5d31 818 ~~ More documentation updates ~~
d7d3f3cb 819
823a5d31 820 * Class::MOP::Package
821 - we now deal with stub methods properly
822 - added tests for this
c0fcd6ab 823 - fixed some tests failing on 5.9.5 (thanks blblack)
d7d3f3cb 824
b25109b1 825 * Class::MOP::Attribute
826 - added get_read_method and get_write_method
d7d3f3cb 827 thanks to groditi for this code, tests
c81de280 828 and docs.
b25109b1 829 - added tests and POD for this
d7d3f3cb 830
795a0c8b 831 * Class::MOP::Class
d7d3f3cb 832 - fixed RT issue #27329, clone object now
795a0c8b 833 handles undef values correctly.
834 - added tests for this
d7d3f3cb 835 - Corrected anon-class handling so that they
836 will not get reaped when instances still
837 exist which need to reference them. This is
838 the correct behavior, hopefully this is an
839 obscure enough feature that there are not too
d4ba1677 840 many work arounds out in the wild.
d7d3f3cb 841 - added tests for this by groditi
95514cb4 842 - updated docs to explain this
843
844 * metaclass
c0fcd6ab 845 - load custom metaclasses automatically (thanks groditi)
f2266181 846 - added tests for this behavior
a06797b0 847
3dc99d93 8480.37 Sat. March 10, 2007
448b6e55 849 ~~ Many, many documentation updates ~~
d7d3f3cb 850
448b6e55 851 * Class::MOP
d7d3f3cb 852 - added &load_class and &is_class_loaded
448b6e55 853 - added tests and docs for these
2367814a 854
9363ea89 855 * Class::MOP::Attribute
d7d3f3cb 856 - default now checks the instance with defined to
9363ea89 857 avoid setting off bool-overloads (found by Carl Franks)
858
c23184fc 8590.37_002
d7d3f3cb 860 * /t
861 - bad name in a test, causing meaningless failuress.
c23184fc 862 No other changes.
863
8640.37_001
d7d3f3cb 865
c23184fc 866 ~~ GLOBAL CHANGES ~~
d7d3f3cb 867 - All attribute names are now consistent and follow Perl 6
868 style (prefixed with the sigil, and ! as the twigil for
869 private attrs). This should not affect any code, unless
870 you broke encapsulation, in which case, it is your problem
c23184fc 871 anyway.
d7d3f3cb 872
c23184fc 873 !! Class::MOP::Class::Immutable has been removed
d7d3f3cb 874
c23184fc 875 * Class::MOP::Method::Constructor
d7d3f3cb 876 - this has been moved out of Class::MOP::Class::Immutable
c23184fc 877 and is a proper subclass of Class::MOP::Method now.
d7d3f3cb 878
c23184fc 879 * Class::MOP::Class
d7d3f3cb 880 - this module now uses Class::MOP::Immutable for the
881 immutable transformation instead of
c23184fc 882 Class::MOP::Class::Immutable.
d7d3f3cb 883
884 + Class::MOP::Immutable
885 - this module now controls the transformation from a mutable
886 to an immutable version of the class. Docs for this will
c23184fc 887 be coming eventually.
d7d3f3cb 888
c23184fc 889
cdc1ecba 8900.36 Sun. Nov. 5, 2006
a651e249 891 * Class::MOP::Class
d7d3f3cb 892 - added a few 'no warnings' lines to keep annoying
893 (and meaningless) warnings from chirping during
a651e249 894 global destruction.
d7d3f3cb 895
0870928c 896 * Class::MOP
d7d3f3cb 897 - some more bootstrapping is now done on the new
0870928c 898 classes
d7d3f3cb 899
0870928c 900 * Class::MOP::Class::Immutable
d7d3f3cb 901 *** API CHANGE ***
902 - constructor generation is now handled by
0870928c 903 the Class::MOP::Method::Constructor class
d7d3f3cb 904
0870928c 905 * Class::MOP::Method::Constructor
d7d3f3cb 906 - created this to handle constructor generation
0870928c 907 in Class::MOP::Class::Immutable
d7d3f3cb 908
0870928c 909 * Class::MOP::Attribute
d7d3f3cb 910 *** API CHANGE ***
911 - attributes now delegate to the
912 Class::MOP::Method::Accessor to generate
0870928c 913 accessors
d7d3f3cb 914
0870928c 915 * Class::MOP::Method::Accessor
d7d3f3cb 916 - all accessor generation functions from
0870928c 917 Class::MOP::Attribute have been moved here
a651e249 918
80f00c79 9190.35 Sat. Sept. 30, 2006
8745cf22 920
921 * scripts/class_browser.pl
d7d3f3cb 922 - initial prototype of a class browser, more
923 on this to come. Comments and patches are
8745cf22 924 very much welcome.
b1897d4d 925
926 * Class::MOP
d7d3f3cb 927 - All Class::MOP::* accessors are no longer
928 re-generated in the bootstrap, instead
6d2118a4 929 they are aliased from the originals
6d2118a4 930 - fixed tests to reflect
d7d3f3cb 931 - added Class::MOP::Method (and its subclasses)
b1897d4d 932 to the bootstrap
933 - adjusted tests for this
86482605 934 - added the Class::MOP::Instance attributes
935 to the bootstrap
d7d3f3cb 936
b1897d4d 937 * Class::MOP::Method
938 *** API CHANGE ***
939 - methods are no longer blessed CODE refs
940 but are actual objects which can be CODE-ified
941 - adjusted tests to compensate
d7d3f3cb 942 - adjusted docs for this
b1897d4d 943
944 * Class::MOP::Class
d7d3f3cb 945 - changed how methods are dealt with to
946 encapsulate most of the work into the
b1897d4d 947 &get_method_map method
948 - made several adjustments for the change
949 in Class::MOP::Method
d7d3f3cb 950 - &add_attribute now checks if you are adding
951 a duplicate name, and properly removes the
b1897d4d 952 old one before installing the new one
953 - added tests for this
86482605 954 - adjusted docs for this
d7d3f3cb 955
b1897d4d 956 * Class::MOP::Class::Immutable
957 - added caching of &get_method_map
958 - fixed issue with &get_package_symbol
959 - cleaned up the methods that die (patch by David Wheeler)
d7d3f3cb 960
b1897d4d 961 * Class::MOP::Package
d7d3f3cb 962 - added filtering capabilities to
b1897d4d 963 &list_all_package_symbols
964
a549ce50 9650.34 Sat. Aug. 26, 2006
c4260b45 966 * Class::MOP::Class
967 - added the %:methods attribute, which like
d7d3f3cb 968 the $:version and such just actually goes
969 to the symbol table to get it's stuff.
c4260b45 970 However, it makes the MOP more complete.
88dd563c 971 ** API CHANGE **
d7d3f3cb 972 - The &create method now requires that all
973 but the package name now is passed in as
88dd563c 974 named parameters. See docs for more info.
975 - updated docs and tests for this
d7d3f3cb 976
c4260b45 977 * Class::MOP::Object
d7d3f3cb 978 - added &dump method to easily Data::Dumper
c4260b45 979 an object
d7d3f3cb 980
c4260b45 981 * Class::MOP
d7d3f3cb 982 - cleaned up the initialization of attributes
983 which do not store things in the instance
c4260b45 984 - added the %:methods attribute definition to
985 the bootstrap
d7d3f3cb 986
88dd563c 987 ~ lots of misc. test cleanup
c4260b45 988
56e8dd5d 9890.33 Sat. Aug. 19, 2006
be7677c7 990 * Class::MOP::Class
d7d3f3cb 991 - moved the metaclass cache out of here
be7677c7 992 and it is now in Class::MOP itself.
d7d3f3cb 993
56e8dd5d 994 * Class::MOP
995 - moved all the metaclass cache stuff here
996 - fixed all tests for this
be7677c7 997
148b4697 998 * Class::MOP::Attribute
d7d3f3cb 999 - reference values (other than CODE refs)
148b4697 1000 are no longer allowed for defaults
1001 - added tests for this
d7d3f3cb 1002
56dcfc1a 1003 * Class::MOP::Package
d7d3f3cb 1004 - fixed an issue with perl 5.8.1 and how it deals
1005 with symbol tables. The namespace hash is now
1006 always reloaded from the symbol table.
e3a2c885 1007
1008 ~ lots of misc. documentation cleanup
1396f86b 1009
716c5765 10100.32 Sat. Aug. 12, 2006
d7d3f3cb 1011 + added Class::MOP::Object so that the
6e57504d 1012 metamodel is more complete (and closer
1013 to what Perl 6 will probably be).
1014
9ca19585 1015 * Class::MOP::Package
d7d3f3cb 1016 - refactored entire class, this is now
9ca19585 1017 the primary gateway between the metaclass
1018 and the Perl 5 symbol table
1019 - added many tests for this
d7d3f3cb 1020 - this class is now a subclass of
6e57504d 1021 Class::MOP::Object
716c5765 1022 - added some tests to reflect this
d7d3f3cb 1023
9ca19585 1024 * Class::MOP::Class
d7d3f3cb 1025 - refactored all symbol table access to
9ca19585 1026 use Class::MOP::Package methods instead
d7d3f3cb 1027
f0480c45 1028 * Class::MOP::Module
1029 - adding the $:version attribute in the bootstrap
1030 so that Module has a version as an attribute
1031 - see comment in Class::MOP for details
d7d3f3cb 1032 - added the $:authority attribute to this module
1033 as well as an &identifier method, to bring us
1034 ever closer to Perl 6 goodness
1035 - I have added $AUTHORITY to all the modules
716c5765 1036 - added tests for this
d7d3f3cb 1037
f0480c45 1038 * Class::MOP::Instance
d7d3f3cb 1039 - added &deinitialize_slot for removing slots
f0480c45 1040 from an instance
d7d3f3cb 1041 - added tests for this
1042
1043 * Class::MOP::Attribute
9ca19585 1044 - added support for &deinitialize_slot for removing
1045 slots from an instance
1046 - added tests for this
1047
1a09d9cc 10480.31 Sat. July 15, 2006
1049
b679e644 1050 * Class::MOP::Class
1051 - added &find_method_by_name to locate a method
d7d3f3cb 1052 anywhere within the class hierarchy
1053
b679e644 1054 * Class::MOP::Attribute
d7d3f3cb 1055 - added &set_value and &get_value for getting
1056 the value of the attribute for a particular
b679e644 1057 instance.
1058
373a16ae 10590.30 Wed. July 5, 2006
1060 ---------------------------------------
d7d3f3cb 1061 This is the first version of Class::MOP
373a16ae 1062 to introduce the immutable features which
d7d3f3cb 1063 will be used for optimizating the MOP.
373a16ae 1064 This support should still be considered
1065 experimental, but moving towards stability.
1066 ---------------------------------------
d7d3f3cb 1067
1068 * Created Class::MOP::Class::Immutable
1069
1070 * Created the Class::MOP::Package and
1071 Class::MOP::Module classes to more
373a16ae 1072 closely conform to Perl 6's meta-model
e0a82090 1073
1074 * Class::MOP::Class
1075 - now inherits from Class::MOP::Module
d7d3f3cb 1076 - several methods moved to ::Module and
e0a82090 1077 ::Package and now inherited
1078 - added tests for this
d7d3f3cb 1079
c0cbf4d9 1080 * Class::MOP::Instance
d7d3f3cb 1081 - added an is_inlinable method to allow other
c0cbf4d9 1082 classes to check before they attempt to optimize.
d7d3f3cb 1083 - added an inline_create_instance to inline
1084 instance creation (of course)
1085
2ba153a9 1086 ** API CHANGE **
d7d3f3cb 1087 - the Class::MOP::Class::*_package_variable
2ba153a9 1088 methods are all now methods of Class::MOP::Package
d7d3f3cb 1089 and called *_package_symbol instead. This is
1090 because they are now more general purpose symbol
1091 table manipulation methods.
e0a82090 1092
cdfaa4cc 10930.29_02 Thurs. June 22, 2006
1094 ++ DEVELOPER RELEASE ++
df7b4119 1095 * Class::MOP::Class
d7d3f3cb 1096 - small change in &create so that it behaves
df7b4119 1097 properly when inherited
cdfaa4cc 1098 - small fix to &clone_instance
df7b4119 1099
667cecf3 11000.29_01 Fri. May 12, 2006
1101 ++ DEVELOPER RELEASE ++
d7d3f3cb 1102 - This release works in combination with
667cecf3 1103 Moose 0.09_01, it is a developer release
d7d3f3cb 1104 because it introduces a new instance
1105 sub-protocol and has not yet been
1106 optimized.
667cecf3 1107
40483095 1108 * Class::MOP::Class
1109 - anon-classes are now properly garbage collected
d7d3f3cb 1110 - added tests for this
1111 - improved method modifier wrapping
40483095 1112
2bab2be6 1113 * Class::MOP::Instance
1becdfcc 1114 - added new instance protocol
2bab2be6 1115 - added tests for this
1116 - changed all relevant modules and examples
1117 - Class::MOP::Class
1118 - Class::MOP::Attribute
1119 - examples/*
1120
1becdfcc 1121 * metaclass
1122 - you no longer need to specify the metaclass
1123 itself, if it is not there, Class::MOP::Class
1124 is just assumed
1125 - updated tests for this
1126
1127 * examples/
d7d3f3cb 1128 - added ArrayBasedStorage example to show
1becdfcc 1129 instance storage using ARRAY refs instead of
d7d3f3cb 1130 HASH refs.
1becdfcc 1131 - added tests for this
d7d3f3cb 1132 - InsideOutClass is totally revised using the
1becdfcc 1133 new instance protocol
1134 - added more tests for this
1135
93b4e576 11360.26 Mon. April 24, 2006
e7f732e4 1137 * Class::MOP::Class
1138 - added find_attribute_by_name method
1139 - added tests and docs for this
56a0b530 1140 - some small optimizations
1141
1142 * Class::MOP::Attribute
1143 - some small optimizations
e7f732e4 1144
46666f33 11450.25 Thurs. April 20, 2006
587aca23 1146 * Class::MOP::Class
1147 - added create_anon_class for creating anonymous classes
1148 - added tests for this
1149 - added get_all_metaclasses, get_all_metaclass_names
1150 and get_all_metaclass_instances method to allow
1151 access to all the cached metaclass objects.
bd4e03f9 1152 - attribute slot initialization is now the responsibility
d7d3f3cb 1153 of the attribute itself, and construct_instance now
bd4e03f9 1154 delegates appropriately
d7d3f3cb 1155
bd4e03f9 1156 * Class::MOP::Attribute
1157 - attribute slot initialization is now the responsibility
1158 of the attribute itself, so we added a method for it
1159 called initialize_instance_slot
d7d3f3cb 1160
fed4cee7 1161 * examples/
d7d3f3cb 1162 - adjusted all the examples to use the new attribute
1163 initialize_instance_slot method
587aca23 1164
1daaa2b2 11650.24 Tues. April 11, 2006
8c936afc 1166 * Class::MOP::Class
d7d3f3cb 1167 - cleaned up how the before/after/around method
8c936afc 1168 modifiers get named with Sub::Name
1169
b9dfbf78 11700.23 Thurs. March 30, 2006
a977cf65 1171 * Class::MOP::Class
d7d3f3cb 1172 - fixed the way attribute defaults are handled
a977cf65 1173 during instance construction (bug found by chansen)
d7d3f3cb 1174
b9dfbf78 1175 * Class::MOP::Attribute
d7d3f3cb 1176 - read-only accessors ('reader') will now die if
b9dfbf78 1177 passed more than one argument (attempting to write
1178 to them basically)
1179 - added tests for this
d7d3f3cb 1180 - adjusted all /example files to comply
a977cf65 1181
f9eba090 11820.22 Mon. March 20, 2006
0eff2c16 1183 * Class::MOP::Class
1184 - localized $@ in the *_package_variable functions
1185 because otherwise, it does ugly things in Moose.
1186 - added test case for this
1187
1988e85e 11880.21 Wed. March 15, 2006
2f6d5412 1189 * Class::MOP::Class
d7d3f3cb 1190 - fixed issue where metaclasses are reaped from
2f6d5412 1191 our cache in global destruction, and so are not
1192 available in DESTORY calls
1193
96ceced8 11940.20 Thurs. March 2, 2006
d7d3f3cb 1195 - removed the dependency for Clone since
d3cb0d4a 1196 we no longer to deep-cloning by default.
d7d3f3cb 1197
a4258ffd 1198 * Class::MOP::Method
d7d3f3cb 1199 - added &package_name, &name and
1200 &fully_qualified_name methods, some of
1201 which were formerly private subs in
a4258ffd 1202 Class::MOP::Class
d7d3f3cb 1203
a4258ffd 1204 * Class::MOP::Method::Wrapped
d7d3f3cb 1205 - allows for a method to be wrapped with
1206 before, after and around modifiers
a4258ffd 1207 - added tests and docs for this feature
d3cb0d4a 1208
1209 * Class::MOP::Class
58d75218 1210 - improved &get_package_symbol
96ceced8 1211 - &version and &superclasses now use it
a4258ffd 1212 - methods are now blessed into Class::MOP::Method
1213 whenever possible
d7d3f3cb 1214 - added methods to install CLOS-style method modifiers
a4258ffd 1215 - &add_before_method_modifier
d7d3f3cb 1216 - &add_after_method_modifier
a4258ffd 1217 - &add_around_method_modifier
1218 - added tests and docs for these
d7d3f3cb 1219 - added &find_next_method_by_name which finds the
96ceced8 1220 equivalent of SUPER::method_name
d3cb0d4a 1221
1c020571 12220.12 Thurs. Feb 23, 2006
d7d3f3cb 1223 - reduced the dependency on B, no need to always
d89c0fad 1224 have the latest
1225
1c020571 1226 * examples/
1227 - added docs to the C3 method dispatch order test
d7d3f3cb 1228 - fixed missing Algorithm::C3 dependency by making
1c020571 1229 the test skip if it is not installed
1230
0dea7280 12310.11 Mon Feb. 20, 2006
f3f5bd34 1232 * examples/
1233 - added example of changing method dispatch order to C3
d7d3f3cb 1234
a27ae83f 1235 * Class::MOP::Class
19d4b5b8 1236 - changed how clone_instance behaves, it now only does a
1237 shallow clone (see docs for more details)
a27ae83f 1238 - added docs and tests
f3f5bd34 1239
3bf7644b 12400.10 Tues Feb. 14, 2006
d7d3f3cb 1241 ** This release was mostly about writing more tests and
1242 cleaning out old and dusty code, the MOP should now
3bf7644b 1243 be considered "ready to use".
1244
22286063 1245 - adding more tests to get coverage up a little higher,
1246 mostly testing errors and edge cases.
1247 - test coverage is now at 99%
d7d3f3cb 1248
aa448b16 1249 * Class::MOP
1250 - no longer optionally exports to UNIVERSAL::meta or
d7d3f3cb 1251 creates a custom metaclass generator, use the
aa448b16 1252 metaclass pragma instead.
22286063 1253
d7d3f3cb 1254 * Class::MOP::Class
1255 - fixed a number of minor issues which came up in the
1256 error/edge-case tests
1257
1258 * Class::MOP::Attribute
1259 - fixed a number of minor issues which came up in the
22286063 1260 error/edge-case tests
d7d3f3cb 1261
0b8eb325 1262 * examples/
ea263060 1263 - fixing the AttributesWithHistory example, it was broken.
663f8198 1264
550d56db 12650.06 Thurs Feb. 9, 2006
677eb158 1266 * metaclass
d7d3f3cb 1267 - adding new metaclass pragma to make setting up the
677eb158 1268 metaclass a little more straightforward
d7d3f3cb 1269
7b31baf4 1270 * Class::MOP
d7d3f3cb 1271 - clean up bootstrapping to include more complete
1272 attribute definitions for Class::MOP::Class and
1273 Class::MOP::Attribute (accessors, readers, writers,
7b31baf4 1274 etc.) ... it is redundant, but is useful meta-info
1275 to have around.
677eb158 1276
99e5b7e8 1277 * Class::MOP::Class
d7d3f3cb 1278 - fixing minor meta-circularity issue with &meta, it
99e5b7e8 1279 is now more useful for subclasses
d7d3f3cb 1280 - added &get_attribute_map as an accessor for the
7b31baf4 1281 hash of attribute meta objects
c9e77dbb 1282 - &compute_all_applicable_attributes now just returns
1283 the attribute meta-object, rather than the HASH ref
d7d3f3cb 1284 since all the same info can be gotten from the
c9e77dbb 1285 attribute meta-object itself
1286 - updated docs & tests to reflect
5f3c057a 1287 - added &clone_instance method which does a deep clone
1288 of the instance structure created by &construct_instance
1289 - added docs & tests for this
550d56db 1290 - added Clone as a dependency
5f3c057a 1291 - added &new_object and &clone_object convience methods to
1292 return blessed new or cloned instances
2a7575a6 1293 - they handle Class::MOP::Class singletons correctly too
5f3c057a 1294 - added docs & tests for this
2a7575a6 1295 - cleaned up the &constuct_class_instance so that it behaves
1296 more like &construct_instance (and managed the singletons too)
550d56db 1297 - added the &check_metaclass_compatibility method to make sure
1298 that metaclasses are upward and downward compatible.
1299 - added tests and docs for this
d7d3f3cb 1300
99e5b7e8 1301 * examples/
1302 - adjusting code to use the &Class::MOP::Class::meta
1303 fix detailed above
677eb158 1304 - adjusting code to use the metaclass pragma
d7d3f3cb 1305
aa9c883e 13060.05 Sat Feb. 4, 2006
2e41896e 1307 * Class::MOP::Class
1308 - added the &attribute_metaclass and &method_metaclass
d7d3f3cb 1309 attributes which contain a metaclass name to use for
2e41896e 1310 attributes/methods respectively
d7d3f3cb 1311
351bd7d4 1312 * Class::MOP
d7d3f3cb 1313 - bootstrap additional attributes for Class::MOP::Class
1314
2e41896e 1315 * examples/
1316 - adjusted the example code and tests to use the new
1317 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 1318 - added new example:
1319 - LazyClass
2e41896e 1320
d7c2cbe3 13210.04 Fri Feb. 3, 2006
d6fbcd05 1322 * Class::MOP::Class
1323 - some documentation suggestions from #perl6
d7d3f3cb 1324
d6fbcd05 1325 * Class::MOP::Attribute
d7d3f3cb 1326 - improved error messages
1327
d6fbcd05 1328 * examples/
1329 - added new examples:
1330 - AttributesWithHistory
d7c2cbe3 1331 - ClassEncapsultedAttributes
343203ee 1332
9ec169fe 13330.03 Fri Feb. 3, 2006
1334 - converted to Module::Build instead of EU::MM
d7d3f3cb 1335
9ec169fe 1336 * Class::MOP::Attribute
1337 - refactored method generation code
1338 - attributes are now associated with class directly
d7d3f3cb 1339
f71f4295 1340 * examples/
d7d3f3cb 1341 - refactored the InsideOut example to take advantage
9ec169fe 1342 of the Class::MOP::Attribute refactoring
f71f4295 1343 - changed example files to .pod files and hide thier
1344 package names from PAUSE (I don't want to own these
1345 namespaces really, they are just examples)
9ec169fe 1346
a57c7fa2 13470.02 Thurs Feb. 2, 2006
1348 - moving examples from t/lib/* to examples/*
1349 - adding POD documentation to the examples
1350
a2e85e6c 13510.01 Thurs Feb. 2, 2006
92af7fdf 1352 - Initial release