Class::MOP::Method->execute
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
b817e248 2
25a5f083 30.72
4 * Class::MOP::Method
5 - Add an "execute" method to invoke the body so
6 we can avoid using the coderef overload (Sartak)
7
96185d43 80.71 Wed November 26, 2008
d652fbd5 9 * Class::MOP::Class
10 * Class::MOP::Module
11 - Actual package creation has moved upward from
12 Class to Module so that Moose roles can share
13 the code (Sartak)
14
88b8ac17 150.70_01 Mon, November 19, 2008
16 * Class::MOP
17 - Fixes for failures with blead (Florian Ragwitz)
18 - Silenced compiler warnings (Florian Ragwitz)
19
200.70 Fri, November 14, 2008
7329b9e2 21 * Class::MOP
22 - Fixed an odd corner case where the XS version of
9b1760fc 23 get_all_package_symbols could cause a segfault. This only
7329b9e2 24 happened with inlined constants in Perl 5.10.0 (Florian
25 Ragwitz)
7329b9e2 26
52c685d3 270.69 Fri, November 7, 2008
b88aa2e8 28 * Class::MOP::Method::Wrapped
29 - Added introspection methods for method modifiers (Dave Rolsky)
30
31
4a9e02e8 320.68 Fri October 24, 2008
dfbc4d4c 33 * Class::MOP
34 - Make load_class require by file name instead of module name.
35 This stops confusing error messages when loading '__PACKAGE__'.
36 (Florian Ragwitz)
5a24cf8a 37 - Add load_one_class_of function to enable you to load one of a
38 list of classes, rather than having to call load_class multiple
39 times in an eval. (t0m)
dfbc4d4c 40
5f5ee28a 410.67 Tue October 14, 2008
2e7eb96b 42 * Class::MOP::Class
43 - Call a method on the class after setting the superclass list
44 so that we can get Perl to detect cycles before MRO::Compat
45 spirals into an infinite loop (sartak)
46 - Reported by Schwern, [rt.cpan.org #39001]
34d04967 47 - In create(), pass unused options on to initialize()
48 - added test for this
2e7eb96b 49
34d04967 500.66 Sat September 20, 2008
fe05cbbe 51 !! This release has an incompatible change regarding !!
52 introspection of a class's method with Class::MOP::Class !!
53
9e9e6b8f 54 * Tests and XS
55 - We (us maintainers) now run all tests with XS and then without
56 XS, which should help us catch skew between the XS/pure Perl
e073e667 57 code. (Dave Rolsky)
9e9e6b8f 58
91b73829 59 * Class::MOP::Class
fe05cbbe 60 ! The alias_method method has been deprecated. It now simply
1190621f 61 calls add_method instead. There is no distinction between
62 aliased methods and "real" methods.
fe05cbbe 63
64 This means that methods added via alias_method now show up as
7143219b 65 part of the class's method list/map. This is a backwards
fe05cbbe 66 incompatible change, but seems unlikely to break any
67 code. Famous last words. (Dave Rolsky)
91b73829 68
155f0cba 69 * Class::MOP::Class
70 - Fixed the spelling of "compatibility", but we still have a
71 "check_metaclass_compatability" method for backwards
72 compatibility.
9e9e6b8f 73
94278c1b 740.65 Mon September 1, 2008
75 For those not following the series of dev releases, the changes
8b9106cf 76 from 0.64 from 0.65 can mostly be summed up as a lot performance
94278c1b 77 improvements by nothingmuch, including new optional XS versions of
78 some methods. Also, Class::MOP now works _without_ any XS modules,
79 for sad systems without a compiler.
80
988fb42e 81 * Class::MOP::Method
82 - Added name and package_name XS accessors, and make sure all
83 the XS and Perl versions work the same way. (Dave Rolsky)
84
85 * MOP.xs
86 - The XS versions of various methods just returned undef when
87 called class methods, rather than dying like the pure Perl
88 versions. (Dave Rolsky)
89
13ac653a 900.64_07 Fri August 29, 2008
400982e3 91 * Class::MOP
13ac653a 92 - Silenced warnings that managed to break Moose tests when XS
93 was loaded. (Dave Rolsky)
94 - Some XS versions of methods were ignored because of typos in
95 MOP.xs. (Dave Rolsky)
400982e3 96
13ac653a 970.64_06 Mon August 25, 2008
9457b596 98 * Class::MOP (MOP.xs)
99 - Another MS VC++ fix, cannot declare a variable in the middle
100 of a scope (Taro Nishino).
101
1020.64_05 Sun August 24, 2008
2a755fe8 103 * Class::MOP
104 - None of the dev releases actually loaded the XS properly, but
105 we silently fell back to the pure Perl version of the
106 code. (Dave Rolsky)
107
108 * Class::MOP (MOP.xs)
109 - Replaced some code that used functions not available on Visual
110 C++ with some Perl XS API bits (Dave Rolsky).
111
f65af096 1120.64_04 Sat August 23, 2008
9ebc265d 113 * Class::MOP::Class
f65af096 114 - Workaround a bug in 5.8.1's goto sub (nothingmuch)
115
116 * pod.t and pod_coveraget.t
117 - These are no longer shipped with the tarball because of bogus
118 failures from CPAN testers. (Dave Rolsky)
9ebc265d 119
df7077cd 1200.64_03 Thu August 21, 2008
121 * Class::MOP::Package
122 - Some (legit) code was misparsed by earlier 5.8.x
123 releases. (nothingmuch)
124
125 * Class::MOP
126 - Fix a constant in void context warning (nothingmuch)
127
09ed1ec5 1280.64_02 Thu August 21, 2008
64c591d3 129 * Makefile.PL and Class::MOP
4dde2f23 130 - Explicitly require Perl 5.8.0+ (Dave Rolsky)
131
132 * Makefile.PL
133 - Add missing prereqs that got lost in the switch away from
134 Module::Install.
64c591d3 135
09ed1ec5 136 * Class::MOP::Instance
137 - New method - get_all_attributes (nothingmuch)
138
1390.64_01 Wed August 20, 2008
f125b31e 140 * Makefile.PL
141 - We now check to see if you have a compiler. If you don't, the
142 module installs without some XS bits, but will work the same
143 as with XS. This should make it easier to install on platforms
144 without a compiler (like Windows). (Dave Rolsky)
2e5c1a3f 145
40b3c18f 146 * many modules
7f799c13 147 - Perl 6 style attribute naming replaced with sane style ('methods', not
148 '%!methods'). These changes should not impact any existing API uses.
149 (nothingmuch).
150
151 * many modules
40b3c18f 152 - Quite a number of optimizations based on profiling, including
153 allowing constructors to take hash references instead of
154 hashes, duplicating some frequently used code in XS, and
155 making constructors immutable. These changes should not impact
156 any existing API uses. (nothingmuch)
157
7f799c13 158 * Many modules
159 - Constructors now respect the meta attributes of their subclasses,
160 facilitating MOP extensibility. More related changes will happen in the
161 next several releases. (nothingmuch)
162
40b3c18f 163 * Class::MOP::Class
7f799c13 164 - New method - get_all_methods, replaces the deprecated
165 compute_all_applicable_methods. get_all_attributes provided for
166 consistency (nothingmuch)
167 - New method - wrap_method was refactored out of get_method_map
168 (nothingmuch)
169 - New API for meta instance invalidation - invalidate_meta_instance,
170 invalidate_meta_instances, add_dependent_meta_instance,
171 remove_dependent_meta_instance, called automatically when attribute
172 definitions change and allows notification of dependent subclasses.
173 (nothingmuch)
40b3c18f 174
7202116b 1750.64 Sun August 3, 2008
84bc89b3 176 * Class::MOP::Immutable
7202116b 177 - fixing subtle edge case in immutable when you
84bc89b3 178 call ->meta (stevan)
7202116b 179 - clean up option processing (nothingmuch)
180
181 * Class::MOP::Instance
182 - inlined initialize slot didn't match
183 non-inlined (nothingmuch)
84bc89b3 184
f079b1eb 1850.63 Mon July 7, 2008
07940968 186 * Class::MOP
187 - load_class will initialize a metaclass even if
188 the class is already loaded (sartak)
189 - load_class now returns the metaclass instance
190 instead of just 1 (sartak)
6e1c8b63 191
f079b1eb 192 * elsewhere
193 - better error messages (sartak and Dave Rolsky)
194
ebce5539 1950.62 Wed June 18, 2008
1377b506 196 - in is_class_loaded, recognize scalar references (as opposed to globs) in
197 the symbol table as methods (these are optimized constant subs)
198
70ad0655 1990.61 Fri. June 13, 2008
200 - Okay, lets give this another try and see if PAUSE
201 recognizes it correct this time.
a023763e 202
2030.60 Thurs. Jun 12, 2008
809a26fc 204 - Fixed a version number issue by bumping all modules
205 to 0.60.
8c5cc782 206
2070.59 Thurs. Jun 12, 2008
d1dba7a1 208 !! Several fixes resulting in yet another 25-30% speedup !!
9b522fc4 209
210 * Class::MOP::Class
211 - now stores the instance of the instance
212 metaclass to avoid needless recomputation
8b49a472 213 and deletes it when the cache is blown
119f3a92 214 - introduce methods to query Class::MOP::Class for
215 the options used to make it immutable as well as
216 the proper immutable transformer. (groditi)
8b49a472 217
218 * Class::MOP::Package
219 - {add, has, get, remove}_package_symbol all
220 now accept a HASH ref argument as well as the
221 string. All internal usages now use the HASH
222 ref version.
f6dc69d2 223
224 * Class::MOP
225 - MOP.xs does sanity checks on the coderef
226 to avoid a segfault
26fcef27 227 - is_class_loaded check now uses code that
228 was improved in Moose's ClassName type
ab5e2f48 229 check (Sartak)
230 - nonsensical (undef, empty, reference) class
231 names now throw a more direct error in
232 load_class (Sartak)
3f7759c1 233 - tests for this and other aspects of
234 load_class (Sartak)
9b522fc4 235
236 * Class::MOP
237 Class::MOP::Class
238 Class::MOP::Method
239 Class::MOP::Method::Wrapped
240 Class::MOP::Attribute
241 - switched usage of reftype to ref because
242 it is much faster
243
352c364f 2440.58 Thurs. May 29, 2008
62781d9f 245 (late night release engineering)--
246
247 - fixing the version is META.yml, no functional
248 changes in this release
249
de0f9e1c 2500.57 Wed. May 28, 2008
d1dba7a1 251 !! Several speedups resulting in 20-25% speedups !!
de0f9e1c 252 || (thanks to konobi, groditi, mst & CataMoose) !!
253
ae234dc6 254 * Class::MOP::Class
255 - made get_method_map use list_all_package_symbols
256 instead of manually grabbing each symbol
de0f9e1c 257 - streamlining &initialize somewhat, since it gets
258 called so much
ae234dc6 259
260 * Class::MOP::Package
261 - made {get, has}_package_symbol not call
262 &namespace so much
de0f9e1c 263 - inlining a few calls to &name with
264 direct HASH access key access
ae234dc6 265 - added get_all_package_symbols to fetch
266 a HASH of items based on a type filter
267 similar to list_all_package_symbols
268 - added tests for this
269
32202ce2 270 * Class::MOP::Method
271 Class::MOP::Method::Constructor
272 Class::MOP::Method::Generated
273 Class::MOP::Method::Accessor
274 - added more descriptive error message to help
275 keep people from wasting time tracking an error
47e20ba2 276 that is easily fixed by upgrading.
32202ce2 277
d1dba7a1 278 * Class::MOP::Immutable
279 - Don't inline a destructor unless the user actually
280 needs one
281 - added tests for this
282
b4009dc1 2830.56 Saturday, May 24, 2008
11b56828 284 * Class::MOP
285 - we now get the &check_package_cache_flag
286 function from MRO::Compat
d7d3f3cb 287 - All XS based functionality now has a
288 Pure Perl alternative
6c34db07 289 - the CLASS_MOP_NO_XS environment variable
d7d3f3cb 290 can now be used to force non-XS versions
6c34db07 291 to always be used
11b56828 292
9e517e01 293 * Class::MOP::Attribute
294 - add has_read_method and has_write_method
d7d3f3cb 295 - get_{read,write}_method_ref now wraps the
def5c0b5 296 anon-sub ref in the method metaclass when
297 possible
298 - added tests for this
d7d3f3cb 299
5f3efd66 300 * Class::MOP::Immutable
d7d3f3cb 301 - added the ability to "wrap" methods when
5f3efd66 302 making the class immutable
d7d3f3cb 303
5f3efd66 304 * Class::MOP::Class
daf8d8bc 305 - now handling the edge case of ->meta->identifier
d7d3f3cb 306 dying by wrapping add_package_symbol to specifically
5f3efd66 307 allow for it to work.
308 - added tests for this
d7d3f3cb 309
310 * Class::MOP::Attribute
6c34db07 311 Class::MOP::Class
d7d3f3cb 312 Class::MOP::Immutable
6c34db07 313 - any time a method meta object is constructed
d7d3f3cb 314 we make sure to pass the correct package and
6c34db07 315 method name information
d7d3f3cb 316
6c34db07 317 * Class::MOP::Method
318 Class::MOP::Method::Wrapped
319 Class::MOP::Method::Generated
320 Class::MOP::Method::Accessor
d7d3f3cb 321 Class::MOP::Method::Consructor
322 - the &wrap constructor method now requires that a
323 'package_name' and 'name' attribute are passed. This
324 is to help support the no-XS version, and will
325 throw an error if these are not supplied.
6c34db07 326 - all these classes are now bootstrapped properly
327 and now store the package_name and name attributes
d7d3f3cb 328 correctly as well
329
330 ~ Build.PL has been removed since the
331 Module::Install support has been removed
9e517e01 332
8adaad20 3330.55 Mon. April 28, 2008
334 - All classes now have proper C3 MRO support
335 - added MRO::Compat as a dependency to allow
336 for the C3 MRO support to Just Work in all
337 perl versions
d7d3f3cb 338
830b326c 339 * Class::MOP::Class
d7d3f3cb 340 - rebless_instance now returns the instance
341 it has just blessed, this is mostly to
830b326c 342 facilitate chaining
d7d3f3cb 343 - set the attr correctly in rebless_instance
6e2a700f 344 when it has no init_arg
77a143ba 345 - tweaked &linear_isa and &class_precedence_list
346 to support c3 classes.
830b326c 347
e0db39d2 3480.54 Fri. March, 14, 2008
8861fab2 349 * Class::MOP
214e4bd7 350 metaclass.pm
8861fab2 351 - making sure that load_class never gets
d7d3f3cb 352 passed a value from @_ or $_ to squash
8861fab2 353 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
354
09c6e1d2 355 * Class::MOP::Class
356 - make_{immutable,mutable} now return 1
357 (cause Sartak asked)
d7b2249e 358 - improved error handling in ->create method
d7d3f3cb 359 - rebless_instance now takes extra params which
360 will be used to populate values
214e4bd7 361 - added tests for this
d7d3f3cb 362
acce7fd6 363 * Class::MOP::Object
d7d3f3cb 364 - localizing the Data::Dumper configurations so
365 that it does not pollute others (RT #33509)
366
d7b2249e 367 * Class::MOP::Class
368 Class::MOP::Package
369 Class::MOP::Module
370 Class::MOP::Method
371 Class::MOP::Attribute
d7d3f3cb 372 - these classes no longer define their own ->meta,
373 but instead just inherit from Class::MOP::Object
374
d7b2249e 375 * Class::MOP::Instance
d7d3f3cb 376 Class::MOP::Immutable
d7b2249e 377 - these classes now inherit from Class::MOP::Object
d7d3f3cb 378
10dd437b 379 * t/
d7d3f3cb 380 - fixed the filename length on several
10dd437b 381 test files so we install on VMS better
382 (RT #32295)
d7d3f3cb 383 - fixed incorrect use of catdir when it
10dd437b 384 should be catfile (RT #32385)
385
2491730f 3860.53 Thurs. Feb. 14, 1008
7a536297 387 ~~ several doc. fixes and updates ~~
d7d3f3cb 388
0c6f4c4a 389 * Class::MOP::Class
390 Class::MOP::Method::Constructor
391 Class::MOP::Attribute
392 - making init_arg accept an undefined value
d7d3f3cb 393 to indicate that no constructor args can
0c6f4c4a 394 be passed (thanks to nothingmuch)
395 - added tests for this
339264d8 396 - added attribute initializer attribute (rjbs)
d7d3f3cb 397
0c6f4c4a 398 * Class::MOP.
399 - making this use the new init_arg => undef
d7d3f3cb 400 feature instead of the silly hack from
0c6f4c4a 401 before (thanks to nothingmuch)
ad074154 402
3e8e8f07 4030.52 Tues. Jan. 22, 2008
2a2b8458 404 * Class::MOP::Class
d7d3f3cb 405 - fixed bug in rebless_instance
2a2b8458 406 (discovered by ash)
407
408 * Class::MOP::Method::Constructor
d7d3f3cb 409 - removed assumptions about the existence of
2a2b8458 410 a &meta method
411
656ce3ba 4120.51 Mon. Jan. 14, 2008
69e3ab0a 413 ~~~ some misc. doc. fixes ~~~
414 ~~ updated copyright dates ~~
d7d3f3cb 415
c1d5345a 416 * Class::MOP
d7d3f3cb 417 - now sets the IS_RUNNING_ON_5_10
c1d5345a 418 constant so that we can take advantage
419 of some of the nice bits of 5.10
d7d3f3cb 420
c1d5345a 421 * Class::MOP::Class
d7d3f3cb 422 - uses the IS_RUNNING_ON_5_10 flag to
423 optimize the &linearized_isa method
c1d5345a 424 and avoid the hack/check for circular
d7d3f3cb 425 inheritence in &class_precedence_list
3d9e4646 426 - added rebless_instance method (Sartak)
427 - added tests for this
d7d3f3cb 428
429 * Class::MOP::Immutable
430 - the immutable class now keeps track of
c1d5345a 431 the transformer which immutablized it
69e3ab0a 432
3d9e4646 433 * Class::MOP::Instance
434 - added rebless_instance_structure method (Sartak)
435 - added tests for this
436
a780a6ff 4370.50 Fri. Dec. 21, 2007
6ff0d647 438 * Class::MOP::Class
d7d3f3cb 439 - fixed bug in immutable to make sure that
440 transformation arguments are saved
6ff0d647 441 correctly (mst)
b6bcc3a5 442 - added tests for this
d7d3f3cb 443
6ff0d647 444 * Class::MOP::Immutable
445 - fixed a bug (see above)
d7d3f3cb 446
6ff0d647 447 * Class::MOP::Attribute
448 - some doc updates
449
30b8af04 4500.49 Fri. Dec. 14, 2007
b6bcc3a5 451 !! Class::MOP now loads 2 x faster !!
30b8af04 452 !! with XS speedups (thanks konobi) !!
d7d3f3cb 453
30b8af04 454 * Class::MOP
455 - removed the dependency on B
456 - added two XS functions (thanks konobi)
457 - get_code_info($code) which replaces all
458 the B fiddling we were doing with
459 faster/leaner XS level fiddling
d7d3f3cb 460 - check_package_cache_flag($pkg_name) which
461 returns the PL_sub_generation variable to
30b8af04 462 be used to help manage method caching.
d7d3f3cb 463
464 NOTE:
465 In 5.10 or greater this will actually
466 use the mro::get_pkg_gen instead to give
467 even more accurate caching information.
30b8af04 468 blblack++ for that stuff :)
d7d3f3cb 469
6c9f390e 470 * Class::MOP::Class
471 - added the &subclasses method (thanks rlb)
d7d3f3cb 472 - added the update_package_cache_flag and
473 reset_package_cache_flag which help keep
474 track of when we need to re-fetch the
475 method map.
30b8af04 476 - Several small improvements to take advantage
477 of the new method map caching features
4c4a6c41 478
1b8b3e09 4790.48 Mon. Nov. 26, 2007
d14f6cbe 480 * Class::MOP::Attribute
d7d3f3cb 481 - fixed get_read/write_method to handle the
482 HASH ref case, which makes the
d14f6cbe 483 get_read/write_method_ref handle it too.
484 - added more tests for this
485
742fb371 4860.47 Sat. Nov. 24, 2007
487 * Class::MOP::Attribute
488 - fixed misspelling in get_write_method_ref
78d9bb38 489 - added more tests for this
742fb371 490
fe7c0b15 4910.46 Fri. Nov. 23, 2007
b7bdffc3 492 * Class::MOP::Class
d7d3f3cb 493 - added the linearized_isa method instead of constantly
494 pruning duplicate classes (this will be even more
b7bdffc3 495 useful in the 5.10-compat version coming soon)
d7d3f3cb 496
5da16d1b 497 * Class::MOP::Attribute
498 - added the get_read_method_ref and get_write_method_ref
d7d3f3cb 499 methods which allow you to retrieve a CODE ref which
5da16d1b 500 can always be used to read or write an attribute.
b7bdffc3 501
1a5cc82e 5020.45 Thurs. Nov. 13, 2007
232c4e13 503 * Class::MOP::Attribute
504 - Fix error message on confess (groditi)
505
544143b2 5060.44 Thurs. Nov. 13, 2007
507 - Apparently I didn't make dist correctly (groditi)
508
c0aeeb91 5090.43 Thurs. Nov. 13, 2007
b08fd50c 510 * Class::MOP
1d68af04 511 - Add support for the 'builder' attribute (groditi)
512
b08fd50c 513 * Class::MOP::Class
d7d3f3cb 514 - optimise metaclass-already-exists check in
b08fd50c 515 construct_class_instance (groditi)
d7d3f3cb 516 - duplicate check into initialize to save a
b08fd50c 517 call through (groditi)
518
1d68af04 519 * Class::MOP::Attribute
520 - Add support for the 'builder' attribute (groditi)
d7d3f3cb 521 - Make predicates check for the existence of a value, not whether
b08fd50c 522 it is defined (groditi)
8768ecf3 523
524 * Class::MOP::Instance
d7d3f3cb 525 - Make predicates check for the existence of a value, not whether
b08fd50c 526 it is defined (groditi)
8768ecf3 527
d7d3f3cb 528 * Class::MOP::Method::Accessor
565f0cbb 529 - made this a subclass of Class::MOP::Method::Generated
530 - removed the relevant attributes
531
532 * Class::MOP::Method::Constructor
533 - fixed the cached values we had to be more sane
534 - made this a subclass of Class::MOP::Method::Generated
d7d3f3cb 535 - fixed generated constructor so it properly handles
565f0cbb 536 subclasses now.
537 - added tests for this
d7d3f3cb 538 - added the option to allow for both inlined and
565f0cbb 539 non-inlined constructors.
b08fd50c 540 - Update inlined methods for builder and predicate changes (groditi)
565f0cbb 541
542 * Class::MOP::Method::Generated
d7d3f3cb 543 - added this class as an abstract base for the
565f0cbb 544 Class::MOP::Method::{Constructor,Accessor} classes
545 - added tests for this
546
b08fd50c 547 *t/
548 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
549 - Tests for new predicate behavior (and corrections to old tests) (groditi)
550
551 *examples/
552 - Update ArrayRef based class example to work with predicate changes
553
367183c4 5540.42 Mon. July 16, 2007
9195ddff 555 !!! Horray for mst, he fixed it !!!
556
92af7fdf 557 * Class::MOP::Package
558 - alter symbol table handling to deal with 5.8.x and 5.9.x
d7d3f3cb 559
92af7fdf 560 * t/
9195ddff 561 - Get rid of the crappy workaround from 0.40/41
92af7fdf 562
829f7554 5630.41 Sun. July 15, 2007
564 * t/
565 Arghh!!! My TODO test didn't work, so I handle
d7d3f3cb 566 it manually now so that people can use this
829f7554 567 with 5.9.5/bleadperl without issue.
568
1d7205b8 5690.40 Tues, July 3, 2007
9f88b8ff 570 * t/
d7d3f3cb 571 ~ marked a test in 003_methods.t as TODO
572 for perl 5.9.5 (this test is irrelvant to
573 the module functioning on 5.9.5 for the most
1d7205b8 574 part anyway)
9f88b8ff 575
28acb786 5760.39 Mon. June 18, 2007
b817e248 577 * Class::MOP::Immutable
0ac992ee 578 - added make_metaclass_mutable + docs (groditi)
579 - removed unused variable
d9586da2 580 - added create_immutable_transformer
581 necessary for sane overloading of immutable behavior
d7d3f3cb 582 - tests for this (groditi)
0ac992ee 583
584 * Class::MOP::Class
585 - Immutability can now be undone,
586 added make_mutable + tests + docs (groditi)
04dd7510 587 - Massive changes to the way Immutable is done
588 for details see comments next to make_immutable
589 This fixes a bug where custom metaclasses broke
d7d3f3cb 590 when made immutable. We are now keeping one immutable
591 metaclass instance per metaclass instead of just one
04dd7510 592 to prevent isa hierarchy corruption. Memory use will go
593 up, but I suspect it will be neglible.
594 - New tests added for this behavior. (groditi)
7c90a1a8 595
c0fcd6ab 5960.38 Thurs. May 31, 2007
823a5d31 597 ~~ More documentation updates ~~
d7d3f3cb 598
823a5d31 599 * Class::MOP::Package
600 - we now deal with stub methods properly
601 - added tests for this
c0fcd6ab 602 - fixed some tests failing on 5.9.5 (thanks blblack)
d7d3f3cb 603
b25109b1 604 * Class::MOP::Attribute
605 - added get_read_method and get_write_method
d7d3f3cb 606 thanks to groditi for this code, tests
c81de280 607 and docs.
b25109b1 608 - added tests and POD for this
d7d3f3cb 609
795a0c8b 610 * Class::MOP::Class
d7d3f3cb 611 - fixed RT issue #27329, clone object now
795a0c8b 612 handles undef values correctly.
613 - added tests for this
d7d3f3cb 614 - Corrected anon-class handling so that they
615 will not get reaped when instances still
616 exist which need to reference them. This is
617 the correct behavior, hopefully this is an
618 obscure enough feature that there are not too
d4ba1677 619 many work arounds out in the wild.
d7d3f3cb 620 - added tests for this by groditi
95514cb4 621 - updated docs to explain this
622
623 * metaclass
c0fcd6ab 624 - load custom metaclasses automatically (thanks groditi)
f2266181 625 - added tests for this behavior
a06797b0 626
3dc99d93 6270.37 Sat. March 10, 2007
448b6e55 628 ~~ Many, many documentation updates ~~
d7d3f3cb 629
448b6e55 630 * Class::MOP
d7d3f3cb 631 - added &load_class and &is_class_loaded
448b6e55 632 - added tests and docs for these
2367814a 633
9363ea89 634 * Class::MOP::Attribute
d7d3f3cb 635 - default now checks the instance with defined to
9363ea89 636 avoid setting off bool-overloads (found by Carl Franks)
637
c23184fc 6380.37_002
d7d3f3cb 639 * /t
640 - bad name in a test, causing meaningless failuress.
c23184fc 641 No other changes.
642
6430.37_001
d7d3f3cb 644
c23184fc 645 ~~ GLOBAL CHANGES ~~
d7d3f3cb 646 - All attribute names are now consistent and follow Perl 6
647 style (prefixed with the sigil, and ! as the twigil for
648 private attrs). This should not affect any code, unless
649 you broke encapsulation, in which case, it is your problem
c23184fc 650 anyway.
d7d3f3cb 651
c23184fc 652 !! Class::MOP::Class::Immutable has been removed
d7d3f3cb 653
c23184fc 654 * Class::MOP::Method::Constructor
d7d3f3cb 655 - this has been moved out of Class::MOP::Class::Immutable
c23184fc 656 and is a proper subclass of Class::MOP::Method now.
d7d3f3cb 657
c23184fc 658 * Class::MOP::Class
d7d3f3cb 659 - this module now uses Class::MOP::Immutable for the
660 immutable transformation instead of
c23184fc 661 Class::MOP::Class::Immutable.
d7d3f3cb 662
663 + Class::MOP::Immutable
664 - this module now controls the transformation from a mutable
665 to an immutable version of the class. Docs for this will
c23184fc 666 be coming eventually.
d7d3f3cb 667
c23184fc 668
cdc1ecba 6690.36 Sun. Nov. 5, 2006
a651e249 670 * Class::MOP::Class
d7d3f3cb 671 - added a few 'no warnings' lines to keep annoying
672 (and meaningless) warnings from chirping during
a651e249 673 global destruction.
d7d3f3cb 674
0870928c 675 * Class::MOP
d7d3f3cb 676 - some more bootstrapping is now done on the new
0870928c 677 classes
d7d3f3cb 678
0870928c 679 * Class::MOP::Class::Immutable
d7d3f3cb 680 *** API CHANGE ***
681 - constructor generation is now handled by
0870928c 682 the Class::MOP::Method::Constructor class
d7d3f3cb 683
0870928c 684 * Class::MOP::Method::Constructor
d7d3f3cb 685 - created this to handle constructor generation
0870928c 686 in Class::MOP::Class::Immutable
d7d3f3cb 687
0870928c 688 * Class::MOP::Attribute
d7d3f3cb 689 *** API CHANGE ***
690 - attributes now delegate to the
691 Class::MOP::Method::Accessor to generate
0870928c 692 accessors
d7d3f3cb 693
0870928c 694 * Class::MOP::Method::Accessor
d7d3f3cb 695 - all accessor generation functions from
0870928c 696 Class::MOP::Attribute have been moved here
a651e249 697
80f00c79 6980.35 Sat. Sept. 30, 2006
8745cf22 699
700 * scripts/class_browser.pl
d7d3f3cb 701 - initial prototype of a class browser, more
702 on this to come. Comments and patches are
8745cf22 703 very much welcome.
b1897d4d 704
705 * Class::MOP
d7d3f3cb 706 - All Class::MOP::* accessors are no longer
707 re-generated in the bootstrap, instead
6d2118a4 708 they are aliased from the originals
6d2118a4 709 - fixed tests to reflect
d7d3f3cb 710 - added Class::MOP::Method (and its subclasses)
b1897d4d 711 to the bootstrap
712 - adjusted tests for this
86482605 713 - added the Class::MOP::Instance attributes
714 to the bootstrap
d7d3f3cb 715
b1897d4d 716 * Class::MOP::Method
717 *** API CHANGE ***
718 - methods are no longer blessed CODE refs
719 but are actual objects which can be CODE-ified
720 - adjusted tests to compensate
d7d3f3cb 721 - adjusted docs for this
b1897d4d 722
723 * Class::MOP::Class
d7d3f3cb 724 - changed how methods are dealt with to
725 encapsulate most of the work into the
b1897d4d 726 &get_method_map method
727 - made several adjustments for the change
728 in Class::MOP::Method
d7d3f3cb 729 - &add_attribute now checks if you are adding
730 a duplicate name, and properly removes the
b1897d4d 731 old one before installing the new one
732 - added tests for this
86482605 733 - adjusted docs for this
d7d3f3cb 734
b1897d4d 735 * Class::MOP::Class::Immutable
736 - added caching of &get_method_map
737 - fixed issue with &get_package_symbol
738 - cleaned up the methods that die (patch by David Wheeler)
d7d3f3cb 739
b1897d4d 740 * Class::MOP::Package
d7d3f3cb 741 - added filtering capabilities to
b1897d4d 742 &list_all_package_symbols
743
a549ce50 7440.34 Sat. Aug. 26, 2006
c4260b45 745 * Class::MOP::Class
746 - added the %:methods attribute, which like
d7d3f3cb 747 the $:version and such just actually goes
748 to the symbol table to get it's stuff.
c4260b45 749 However, it makes the MOP more complete.
88dd563c 750 ** API CHANGE **
d7d3f3cb 751 - The &create method now requires that all
752 but the package name now is passed in as
88dd563c 753 named parameters. See docs for more info.
754 - updated docs and tests for this
d7d3f3cb 755
c4260b45 756 * Class::MOP::Object
d7d3f3cb 757 - added &dump method to easily Data::Dumper
c4260b45 758 an object
d7d3f3cb 759
c4260b45 760 * Class::MOP
d7d3f3cb 761 - cleaned up the initialization of attributes
762 which do not store things in the instance
c4260b45 763 - added the %:methods attribute definition to
764 the bootstrap
d7d3f3cb 765
88dd563c 766 ~ lots of misc. test cleanup
c4260b45 767
56e8dd5d 7680.33 Sat. Aug. 19, 2006
be7677c7 769 * Class::MOP::Class
d7d3f3cb 770 - moved the metaclass cache out of here
be7677c7 771 and it is now in Class::MOP itself.
d7d3f3cb 772
56e8dd5d 773 * Class::MOP
774 - moved all the metaclass cache stuff here
775 - fixed all tests for this
be7677c7 776
148b4697 777 * Class::MOP::Attribute
d7d3f3cb 778 - reference values (other than CODE refs)
148b4697 779 are no longer allowed for defaults
780 - added tests for this
d7d3f3cb 781
56dcfc1a 782 * Class::MOP::Package
d7d3f3cb 783 - fixed an issue with perl 5.8.1 and how it deals
784 with symbol tables. The namespace hash is now
785 always reloaded from the symbol table.
e3a2c885 786
787 ~ lots of misc. documentation cleanup
1396f86b 788
716c5765 7890.32 Sat. Aug. 12, 2006
d7d3f3cb 790 + added Class::MOP::Object so that the
6e57504d 791 metamodel is more complete (and closer
792 to what Perl 6 will probably be).
793
9ca19585 794 * Class::MOP::Package
d7d3f3cb 795 - refactored entire class, this is now
9ca19585 796 the primary gateway between the metaclass
797 and the Perl 5 symbol table
798 - added many tests for this
d7d3f3cb 799 - this class is now a subclass of
6e57504d 800 Class::MOP::Object
716c5765 801 - added some tests to reflect this
d7d3f3cb 802
9ca19585 803 * Class::MOP::Class
d7d3f3cb 804 - refactored all symbol table access to
9ca19585 805 use Class::MOP::Package methods instead
d7d3f3cb 806
f0480c45 807 * Class::MOP::Module
808 - adding the $:version attribute in the bootstrap
809 so that Module has a version as an attribute
810 - see comment in Class::MOP for details
d7d3f3cb 811 - added the $:authority attribute to this module
812 as well as an &identifier method, to bring us
813 ever closer to Perl 6 goodness
814 - I have added $AUTHORITY to all the modules
716c5765 815 - added tests for this
d7d3f3cb 816
f0480c45 817 * Class::MOP::Instance
d7d3f3cb 818 - added &deinitialize_slot for removing slots
f0480c45 819 from an instance
d7d3f3cb 820 - added tests for this
821
822 * Class::MOP::Attribute
9ca19585 823 - added support for &deinitialize_slot for removing
824 slots from an instance
825 - added tests for this
826
1a09d9cc 8270.31 Sat. July 15, 2006
828
b679e644 829 * Class::MOP::Class
830 - added &find_method_by_name to locate a method
d7d3f3cb 831 anywhere within the class hierarchy
832
b679e644 833 * Class::MOP::Attribute
d7d3f3cb 834 - added &set_value and &get_value for getting
835 the value of the attribute for a particular
b679e644 836 instance.
837
373a16ae 8380.30 Wed. July 5, 2006
839 ---------------------------------------
d7d3f3cb 840 This is the first version of Class::MOP
373a16ae 841 to introduce the immutable features which
d7d3f3cb 842 will be used for optimizating the MOP.
373a16ae 843 This support should still be considered
844 experimental, but moving towards stability.
845 ---------------------------------------
d7d3f3cb 846
847 * Created Class::MOP::Class::Immutable
848
849 * Created the Class::MOP::Package and
850 Class::MOP::Module classes to more
373a16ae 851 closely conform to Perl 6's meta-model
e0a82090 852
853 * Class::MOP::Class
854 - now inherits from Class::MOP::Module
d7d3f3cb 855 - several methods moved to ::Module and
e0a82090 856 ::Package and now inherited
857 - added tests for this
d7d3f3cb 858
c0cbf4d9 859 * Class::MOP::Instance
d7d3f3cb 860 - added an is_inlinable method to allow other
c0cbf4d9 861 classes to check before they attempt to optimize.
d7d3f3cb 862 - added an inline_create_instance to inline
863 instance creation (of course)
864
2ba153a9 865 ** API CHANGE **
d7d3f3cb 866 - the Class::MOP::Class::*_package_variable
2ba153a9 867 methods are all now methods of Class::MOP::Package
d7d3f3cb 868 and called *_package_symbol instead. This is
869 because they are now more general purpose symbol
870 table manipulation methods.
e0a82090 871
cdfaa4cc 8720.29_02 Thurs. June 22, 2006
873 ++ DEVELOPER RELEASE ++
df7b4119 874 * Class::MOP::Class
d7d3f3cb 875 - small change in &create so that it behaves
df7b4119 876 properly when inherited
cdfaa4cc 877 - small fix to &clone_instance
df7b4119 878
667cecf3 8790.29_01 Fri. May 12, 2006
880 ++ DEVELOPER RELEASE ++
d7d3f3cb 881 - This release works in combination with
667cecf3 882 Moose 0.09_01, it is a developer release
d7d3f3cb 883 because it introduces a new instance
884 sub-protocol and has not yet been
885 optimized.
667cecf3 886
40483095 887 * Class::MOP::Class
888 - anon-classes are now properly garbage collected
d7d3f3cb 889 - added tests for this
890 - improved method modifier wrapping
40483095 891
2bab2be6 892 * Class::MOP::Instance
1becdfcc 893 - added new instance protocol
2bab2be6 894 - added tests for this
895 - changed all relevant modules and examples
896 - Class::MOP::Class
897 - Class::MOP::Attribute
898 - examples/*
899
1becdfcc 900 * metaclass
901 - you no longer need to specify the metaclass
902 itself, if it is not there, Class::MOP::Class
903 is just assumed
904 - updated tests for this
905
906 * examples/
d7d3f3cb 907 - added ArrayBasedStorage example to show
1becdfcc 908 instance storage using ARRAY refs instead of
d7d3f3cb 909 HASH refs.
1becdfcc 910 - added tests for this
d7d3f3cb 911 - InsideOutClass is totally revised using the
1becdfcc 912 new instance protocol
913 - added more tests for this
914
93b4e576 9150.26 Mon. April 24, 2006
e7f732e4 916 * Class::MOP::Class
917 - added find_attribute_by_name method
918 - added tests and docs for this
56a0b530 919 - some small optimizations
920
921 * Class::MOP::Attribute
922 - some small optimizations
e7f732e4 923
46666f33 9240.25 Thurs. April 20, 2006
587aca23 925 * Class::MOP::Class
926 - added create_anon_class for creating anonymous classes
927 - added tests for this
928 - added get_all_metaclasses, get_all_metaclass_names
929 and get_all_metaclass_instances method to allow
930 access to all the cached metaclass objects.
bd4e03f9 931 - attribute slot initialization is now the responsibility
d7d3f3cb 932 of the attribute itself, and construct_instance now
bd4e03f9 933 delegates appropriately
d7d3f3cb 934
bd4e03f9 935 * Class::MOP::Attribute
936 - attribute slot initialization is now the responsibility
937 of the attribute itself, so we added a method for it
938 called initialize_instance_slot
d7d3f3cb 939
fed4cee7 940 * examples/
d7d3f3cb 941 - adjusted all the examples to use the new attribute
942 initialize_instance_slot method
587aca23 943
1daaa2b2 9440.24 Tues. April 11, 2006
8c936afc 945 * Class::MOP::Class
d7d3f3cb 946 - cleaned up how the before/after/around method
8c936afc 947 modifiers get named with Sub::Name
948
b9dfbf78 9490.23 Thurs. March 30, 2006
a977cf65 950 * Class::MOP::Class
d7d3f3cb 951 - fixed the way attribute defaults are handled
a977cf65 952 during instance construction (bug found by chansen)
d7d3f3cb 953
b9dfbf78 954 * Class::MOP::Attribute
d7d3f3cb 955 - read-only accessors ('reader') will now die if
b9dfbf78 956 passed more than one argument (attempting to write
957 to them basically)
958 - added tests for this
d7d3f3cb 959 - adjusted all /example files to comply
a977cf65 960
f9eba090 9610.22 Mon. March 20, 2006
0eff2c16 962 * Class::MOP::Class
963 - localized $@ in the *_package_variable functions
964 because otherwise, it does ugly things in Moose.
965 - added test case for this
966
1988e85e 9670.21 Wed. March 15, 2006
2f6d5412 968 * Class::MOP::Class
d7d3f3cb 969 - fixed issue where metaclasses are reaped from
2f6d5412 970 our cache in global destruction, and so are not
971 available in DESTORY calls
972
96ceced8 9730.20 Thurs. March 2, 2006
d7d3f3cb 974 - removed the dependency for Clone since
d3cb0d4a 975 we no longer to deep-cloning by default.
d7d3f3cb 976
a4258ffd 977 * Class::MOP::Method
d7d3f3cb 978 - added &package_name, &name and
979 &fully_qualified_name methods, some of
980 which were formerly private subs in
a4258ffd 981 Class::MOP::Class
d7d3f3cb 982
a4258ffd 983 * Class::MOP::Method::Wrapped
d7d3f3cb 984 - allows for a method to be wrapped with
985 before, after and around modifiers
a4258ffd 986 - added tests and docs for this feature
d3cb0d4a 987
988 * Class::MOP::Class
58d75218 989 - improved &get_package_symbol
96ceced8 990 - &version and &superclasses now use it
a4258ffd 991 - methods are now blessed into Class::MOP::Method
992 whenever possible
d7d3f3cb 993 - added methods to install CLOS-style method modifiers
a4258ffd 994 - &add_before_method_modifier
d7d3f3cb 995 - &add_after_method_modifier
a4258ffd 996 - &add_around_method_modifier
997 - added tests and docs for these
d7d3f3cb 998 - added &find_next_method_by_name which finds the
96ceced8 999 equivalent of SUPER::method_name
d3cb0d4a 1000
1c020571 10010.12 Thurs. Feb 23, 2006
d7d3f3cb 1002 - reduced the dependency on B, no need to always
d89c0fad 1003 have the latest
1004
1c020571 1005 * examples/
1006 - added docs to the C3 method dispatch order test
d7d3f3cb 1007 - fixed missing Algorithm::C3 dependency by making
1c020571 1008 the test skip if it is not installed
1009
0dea7280 10100.11 Mon Feb. 20, 2006
f3f5bd34 1011 * examples/
1012 - added example of changing method dispatch order to C3
d7d3f3cb 1013
a27ae83f 1014 * Class::MOP::Class
19d4b5b8 1015 - changed how clone_instance behaves, it now only does a
1016 shallow clone (see docs for more details)
a27ae83f 1017 - added docs and tests
f3f5bd34 1018
3bf7644b 10190.10 Tues Feb. 14, 2006
d7d3f3cb 1020 ** This release was mostly about writing more tests and
1021 cleaning out old and dusty code, the MOP should now
3bf7644b 1022 be considered "ready to use".
1023
22286063 1024 - adding more tests to get coverage up a little higher,
1025 mostly testing errors and edge cases.
1026 - test coverage is now at 99%
d7d3f3cb 1027
aa448b16 1028 * Class::MOP
1029 - no longer optionally exports to UNIVERSAL::meta or
d7d3f3cb 1030 creates a custom metaclass generator, use the
aa448b16 1031 metaclass pragma instead.
22286063 1032
d7d3f3cb 1033 * Class::MOP::Class
1034 - fixed a number of minor issues which came up in the
1035 error/edge-case tests
1036
1037 * Class::MOP::Attribute
1038 - fixed a number of minor issues which came up in the
22286063 1039 error/edge-case tests
d7d3f3cb 1040
0b8eb325 1041 * examples/
ea263060 1042 - fixing the AttributesWithHistory example, it was broken.
663f8198 1043
550d56db 10440.06 Thurs Feb. 9, 2006
677eb158 1045 * metaclass
d7d3f3cb 1046 - adding new metaclass pragma to make setting up the
677eb158 1047 metaclass a little more straightforward
d7d3f3cb 1048
7b31baf4 1049 * Class::MOP
d7d3f3cb 1050 - clean up bootstrapping to include more complete
1051 attribute definitions for Class::MOP::Class and
1052 Class::MOP::Attribute (accessors, readers, writers,
7b31baf4 1053 etc.) ... it is redundant, but is useful meta-info
1054 to have around.
677eb158 1055
99e5b7e8 1056 * Class::MOP::Class
d7d3f3cb 1057 - fixing minor meta-circularity issue with &meta, it
99e5b7e8 1058 is now more useful for subclasses
d7d3f3cb 1059 - added &get_attribute_map as an accessor for the
7b31baf4 1060 hash of attribute meta objects
c9e77dbb 1061 - &compute_all_applicable_attributes now just returns
1062 the attribute meta-object, rather than the HASH ref
d7d3f3cb 1063 since all the same info can be gotten from the
c9e77dbb 1064 attribute meta-object itself
1065 - updated docs & tests to reflect
5f3c057a 1066 - added &clone_instance method which does a deep clone
1067 of the instance structure created by &construct_instance
1068 - added docs & tests for this
550d56db 1069 - added Clone as a dependency
5f3c057a 1070 - added &new_object and &clone_object convience methods to
1071 return blessed new or cloned instances
2a7575a6 1072 - they handle Class::MOP::Class singletons correctly too
5f3c057a 1073 - added docs & tests for this
2a7575a6 1074 - cleaned up the &constuct_class_instance so that it behaves
1075 more like &construct_instance (and managed the singletons too)
550d56db 1076 - added the &check_metaclass_compatibility method to make sure
1077 that metaclasses are upward and downward compatible.
1078 - added tests and docs for this
d7d3f3cb 1079
99e5b7e8 1080 * examples/
1081 - adjusting code to use the &Class::MOP::Class::meta
1082 fix detailed above
677eb158 1083 - adjusting code to use the metaclass pragma
d7d3f3cb 1084
aa9c883e 10850.05 Sat Feb. 4, 2006
2e41896e 1086 * Class::MOP::Class
1087 - added the &attribute_metaclass and &method_metaclass
d7d3f3cb 1088 attributes which contain a metaclass name to use for
2e41896e 1089 attributes/methods respectively
d7d3f3cb 1090
351bd7d4 1091 * Class::MOP
d7d3f3cb 1092 - bootstrap additional attributes for Class::MOP::Class
1093
2e41896e 1094 * examples/
1095 - adjusted the example code and tests to use the new
1096 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 1097 - added new example:
1098 - LazyClass
2e41896e 1099
d7c2cbe3 11000.04 Fri Feb. 3, 2006
d6fbcd05 1101 * Class::MOP::Class
1102 - some documentation suggestions from #perl6
d7d3f3cb 1103
d6fbcd05 1104 * Class::MOP::Attribute
d7d3f3cb 1105 - improved error messages
1106
d6fbcd05 1107 * examples/
1108 - added new examples:
1109 - AttributesWithHistory
d7c2cbe3 1110 - ClassEncapsultedAttributes
343203ee 1111
9ec169fe 11120.03 Fri Feb. 3, 2006
1113 - converted to Module::Build instead of EU::MM
d7d3f3cb 1114
9ec169fe 1115 * Class::MOP::Attribute
1116 - refactored method generation code
1117 - attributes are now associated with class directly
d7d3f3cb 1118
f71f4295 1119 * examples/
d7d3f3cb 1120 - refactored the InsideOut example to take advantage
9ec169fe 1121 of the Class::MOP::Attribute refactoring
f71f4295 1122 - changed example files to .pod files and hide thier
1123 package names from PAUSE (I don't want to own these
1124 namespaces really, they are just examples)
9ec169fe 1125
a57c7fa2 11260.02 Thurs Feb. 2, 2006
1127 - moving examples from t/lib/* to examples/*
1128 - adding POD documentation to the examples
1129
a2e85e6c 11300.01 Thurs Feb. 2, 2006
92af7fdf 1131 - Initial release