0.57
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
b817e248 2
de0f9e1c 30.57 Wed. May 28, 2008
4 !! Seveal speedups resulting in 20-25% speedups !!
5 || (thanks to konobi, groditi, mst & CataMoose) !!
6
ae234dc6 7 * Class::MOP::Class
8 - made get_method_map use list_all_package_symbols
9 instead of manually grabbing each symbol
de0f9e1c 10 - streamlining &initialize somewhat, since it gets
11 called so much
ae234dc6 12
13 * Class::MOP::Package
14 - made {get, has}_package_symbol not call
15 &namespace so much
de0f9e1c 16 - inlining a few calls to &name with
17 direct HASH access key access
ae234dc6 18 - added get_all_package_symbols to fetch
19 a HASH of items based on a type filter
20 similar to list_all_package_symbols
21 - added tests for this
22
32202ce2 23 * Class::MOP::Method
24 Class::MOP::Method::Constructor
25 Class::MOP::Method::Generated
26 Class::MOP::Method::Accessor
27 - added more descriptive error message to help
28 keep people from wasting time tracking an error
29 that is easily fixed by upgrading. -
30
b4009dc1 310.56 Saturday, May 24, 2008
11b56828 32 * Class::MOP
33 - we now get the &check_package_cache_flag
34 function from MRO::Compat
d7d3f3cb 35 - All XS based functionality now has a
36 Pure Perl alternative
6c34db07 37 - the CLASS_MOP_NO_XS environment variable
d7d3f3cb 38 can now be used to force non-XS versions
6c34db07 39 to always be used
11b56828 40
9e517e01 41 * Class::MOP::Attribute
42 - add has_read_method and has_write_method
d7d3f3cb 43 - get_{read,write}_method_ref now wraps the
def5c0b5 44 anon-sub ref in the method metaclass when
45 possible
46 - added tests for this
d7d3f3cb 47
5f3efd66 48 * Class::MOP::Immutable
d7d3f3cb 49 - added the ability to "wrap" methods when
5f3efd66 50 making the class immutable
d7d3f3cb 51
5f3efd66 52 * Class::MOP::Class
daf8d8bc 53 - now handling the edge case of ->meta->identifier
d7d3f3cb 54 dying by wrapping add_package_symbol to specifically
5f3efd66 55 allow for it to work.
56 - added tests for this
d7d3f3cb 57
58 * Class::MOP::Attribute
6c34db07 59 Class::MOP::Class
d7d3f3cb 60 Class::MOP::Immutable
6c34db07 61 - any time a method meta object is constructed
d7d3f3cb 62 we make sure to pass the correct package and
6c34db07 63 method name information
d7d3f3cb 64
6c34db07 65 * Class::MOP::Method
66 Class::MOP::Method::Wrapped
67 Class::MOP::Method::Generated
68 Class::MOP::Method::Accessor
d7d3f3cb 69 Class::MOP::Method::Consructor
70 - the &wrap constructor method now requires that a
71 'package_name' and 'name' attribute are passed. This
72 is to help support the no-XS version, and will
73 throw an error if these are not supplied.
6c34db07 74 - all these classes are now bootstrapped properly
75 and now store the package_name and name attributes
d7d3f3cb 76 correctly as well
77
78 ~ Build.PL has been removed since the
79 Module::Install support has been removed
9e517e01 80
8adaad20 810.55 Mon. April 28, 2008
82 - All classes now have proper C3 MRO support
83 - added MRO::Compat as a dependency to allow
84 for the C3 MRO support to Just Work in all
85 perl versions
d7d3f3cb 86
830b326c 87 * Class::MOP::Class
d7d3f3cb 88 - rebless_instance now returns the instance
89 it has just blessed, this is mostly to
830b326c 90 facilitate chaining
d7d3f3cb 91 - set the attr correctly in rebless_instance
6e2a700f 92 when it has no init_arg
77a143ba 93 - tweaked &linear_isa and &class_precedence_list
94 to support c3 classes.
830b326c 95
e0db39d2 960.54 Fri. March, 14, 2008
8861fab2 97 * Class::MOP
214e4bd7 98 metaclass.pm
8861fab2 99 - making sure that load_class never gets
d7d3f3cb 100 passed a value from @_ or $_ to squash
8861fab2 101 Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
102
09c6e1d2 103 * Class::MOP::Class
104 - make_{immutable,mutable} now return 1
105 (cause Sartak asked)
d7b2249e 106 - improved error handling in ->create method
d7d3f3cb 107 - rebless_instance now takes extra params which
108 will be used to populate values
214e4bd7 109 - added tests for this
d7d3f3cb 110
acce7fd6 111 * Class::MOP::Object
d7d3f3cb 112 - localizing the Data::Dumper configurations so
113 that it does not pollute others (RT #33509)
114
d7b2249e 115 * Class::MOP::Class
116 Class::MOP::Package
117 Class::MOP::Module
118 Class::MOP::Method
119 Class::MOP::Attribute
d7d3f3cb 120 - these classes no longer define their own ->meta,
121 but instead just inherit from Class::MOP::Object
122
d7b2249e 123 * Class::MOP::Instance
d7d3f3cb 124 Class::MOP::Immutable
d7b2249e 125 - these classes now inherit from Class::MOP::Object
d7d3f3cb 126
10dd437b 127 * t/
d7d3f3cb 128 - fixed the filename length on several
10dd437b 129 test files so we install on VMS better
130 (RT #32295)
d7d3f3cb 131 - fixed incorrect use of catdir when it
10dd437b 132 should be catfile (RT #32385)
133
2491730f 1340.53 Thurs. Feb. 14, 1008
7a536297 135 ~~ several doc. fixes and updates ~~
d7d3f3cb 136
0c6f4c4a 137 * Class::MOP::Class
138 Class::MOP::Method::Constructor
139 Class::MOP::Attribute
140 - making init_arg accept an undefined value
d7d3f3cb 141 to indicate that no constructor args can
0c6f4c4a 142 be passed (thanks to nothingmuch)
143 - added tests for this
339264d8 144 - added attribute initializer attribute (rjbs)
d7d3f3cb 145
0c6f4c4a 146 * Class::MOP.
147 - making this use the new init_arg => undef
d7d3f3cb 148 feature instead of the silly hack from
0c6f4c4a 149 before (thanks to nothingmuch)
ad074154 150
3e8e8f07 1510.52 Tues. Jan. 22, 2008
2a2b8458 152 * Class::MOP::Class
d7d3f3cb 153 - fixed bug in rebless_instance
2a2b8458 154 (discovered by ash)
155
156 * Class::MOP::Method::Constructor
d7d3f3cb 157 - removed assumptions about the existence of
2a2b8458 158 a &meta method
159
656ce3ba 1600.51 Mon. Jan. 14, 2008
69e3ab0a 161 ~~~ some misc. doc. fixes ~~~
162 ~~ updated copyright dates ~~
d7d3f3cb 163
c1d5345a 164 * Class::MOP
d7d3f3cb 165 - now sets the IS_RUNNING_ON_5_10
c1d5345a 166 constant so that we can take advantage
167 of some of the nice bits of 5.10
d7d3f3cb 168
c1d5345a 169 * Class::MOP::Class
d7d3f3cb 170 - uses the IS_RUNNING_ON_5_10 flag to
171 optimize the &linearized_isa method
c1d5345a 172 and avoid the hack/check for circular
d7d3f3cb 173 inheritence in &class_precedence_list
3d9e4646 174 - added rebless_instance method (Sartak)
175 - added tests for this
d7d3f3cb 176
177 * Class::MOP::Immutable
178 - the immutable class now keeps track of
c1d5345a 179 the transformer which immutablized it
69e3ab0a 180
3d9e4646 181 * Class::MOP::Instance
182 - added rebless_instance_structure method (Sartak)
183 - added tests for this
184
a780a6ff 1850.50 Fri. Dec. 21, 2007
6ff0d647 186 * Class::MOP::Class
d7d3f3cb 187 - fixed bug in immutable to make sure that
188 transformation arguments are saved
6ff0d647 189 correctly (mst)
b6bcc3a5 190 - added tests for this
d7d3f3cb 191
6ff0d647 192 * Class::MOP::Immutable
193 - fixed a bug (see above)
d7d3f3cb 194
6ff0d647 195 * Class::MOP::Attribute
196 - some doc updates
197
30b8af04 1980.49 Fri. Dec. 14, 2007
b6bcc3a5 199 !! Class::MOP now loads 2 x faster !!
30b8af04 200 !! with XS speedups (thanks konobi) !!
d7d3f3cb 201
30b8af04 202 * Class::MOP
203 - removed the dependency on B
204 - added two XS functions (thanks konobi)
205 - get_code_info($code) which replaces all
206 the B fiddling we were doing with
207 faster/leaner XS level fiddling
d7d3f3cb 208 - check_package_cache_flag($pkg_name) which
209 returns the PL_sub_generation variable to
30b8af04 210 be used to help manage method caching.
d7d3f3cb 211
212 NOTE:
213 In 5.10 or greater this will actually
214 use the mro::get_pkg_gen instead to give
215 even more accurate caching information.
30b8af04 216 blblack++ for that stuff :)
d7d3f3cb 217
6c9f390e 218 * Class::MOP::Class
219 - added the &subclasses method (thanks rlb)
d7d3f3cb 220 - added the update_package_cache_flag and
221 reset_package_cache_flag which help keep
222 track of when we need to re-fetch the
223 method map.
30b8af04 224 - Several small improvements to take advantage
225 of the new method map caching features
4c4a6c41 226
1b8b3e09 2270.48 Mon. Nov. 26, 2007
d14f6cbe 228 * Class::MOP::Attribute
d7d3f3cb 229 - fixed get_read/write_method to handle the
230 HASH ref case, which makes the
d14f6cbe 231 get_read/write_method_ref handle it too.
232 - added more tests for this
233
742fb371 2340.47 Sat. Nov. 24, 2007
235 * Class::MOP::Attribute
236 - fixed misspelling in get_write_method_ref
78d9bb38 237 - added more tests for this
742fb371 238
fe7c0b15 2390.46 Fri. Nov. 23, 2007
b7bdffc3 240 * Class::MOP::Class
d7d3f3cb 241 - added the linearized_isa method instead of constantly
242 pruning duplicate classes (this will be even more
b7bdffc3 243 useful in the 5.10-compat version coming soon)
d7d3f3cb 244
5da16d1b 245 * Class::MOP::Attribute
246 - added the get_read_method_ref and get_write_method_ref
d7d3f3cb 247 methods which allow you to retrieve a CODE ref which
5da16d1b 248 can always be used to read or write an attribute.
b7bdffc3 249
1a5cc82e 2500.45 Thurs. Nov. 13, 2007
232c4e13 251 * Class::MOP::Attribute
252 - Fix error message on confess (groditi)
253
544143b2 2540.44 Thurs. Nov. 13, 2007
255 - Apparently I didn't make dist correctly (groditi)
256
c0aeeb91 2570.43 Thurs. Nov. 13, 2007
b08fd50c 258 * Class::MOP
1d68af04 259 - Add support for the 'builder' attribute (groditi)
260
b08fd50c 261 * Class::MOP::Class
d7d3f3cb 262 - optimise metaclass-already-exists check in
b08fd50c 263 construct_class_instance (groditi)
d7d3f3cb 264 - duplicate check into initialize to save a
b08fd50c 265 call through (groditi)
266
1d68af04 267 * Class::MOP::Attribute
268 - Add support for the 'builder' attribute (groditi)
d7d3f3cb 269 - Make predicates check for the existence of a value, not whether
b08fd50c 270 it is defined (groditi)
8768ecf3 271
272 * Class::MOP::Instance
d7d3f3cb 273 - Make predicates check for the existence of a value, not whether
b08fd50c 274 it is defined (groditi)
8768ecf3 275
d7d3f3cb 276 * Class::MOP::Method::Accessor
565f0cbb 277 - made this a subclass of Class::MOP::Method::Generated
278 - removed the relevant attributes
279
280 * Class::MOP::Method::Constructor
281 - fixed the cached values we had to be more sane
282 - made this a subclass of Class::MOP::Method::Generated
d7d3f3cb 283 - fixed generated constructor so it properly handles
565f0cbb 284 subclasses now.
285 - added tests for this
d7d3f3cb 286 - added the option to allow for both inlined and
565f0cbb 287 non-inlined constructors.
b08fd50c 288 - Update inlined methods for builder and predicate changes (groditi)
565f0cbb 289
290 * Class::MOP::Method::Generated
d7d3f3cb 291 - added this class as an abstract base for the
565f0cbb 292 Class::MOP::Method::{Constructor,Accessor} classes
293 - added tests for this
294
b08fd50c 295 *t/
296 - Alter tests (005, 014 020, 021) for new builder addition (groditi)
297 - Tests for new predicate behavior (and corrections to old tests) (groditi)
298
299 *examples/
300 - Update ArrayRef based class example to work with predicate changes
301
367183c4 3020.42 Mon. July 16, 2007
9195ddff 303 !!! Horray for mst, he fixed it !!!
304
92af7fdf 305 * Class::MOP::Package
306 - alter symbol table handling to deal with 5.8.x and 5.9.x
d7d3f3cb 307
92af7fdf 308 * t/
9195ddff 309 - Get rid of the crappy workaround from 0.40/41
92af7fdf 310
829f7554 3110.41 Sun. July 15, 2007
312 * t/
313 Arghh!!! My TODO test didn't work, so I handle
d7d3f3cb 314 it manually now so that people can use this
829f7554 315 with 5.9.5/bleadperl without issue.
316
1d7205b8 3170.40 Tues, July 3, 2007
9f88b8ff 318 * t/
d7d3f3cb 319 ~ marked a test in 003_methods.t as TODO
320 for perl 5.9.5 (this test is irrelvant to
321 the module functioning on 5.9.5 for the most
1d7205b8 322 part anyway)
9f88b8ff 323
28acb786 3240.39 Mon. June 18, 2007
b817e248 325 * Class::MOP::Immutable
0ac992ee 326 - added make_metaclass_mutable + docs (groditi)
327 - removed unused variable
d9586da2 328 - added create_immutable_transformer
329 necessary for sane overloading of immutable behavior
d7d3f3cb 330 - tests for this (groditi)
0ac992ee 331
332 * Class::MOP::Class
333 - Immutability can now be undone,
334 added make_mutable + tests + docs (groditi)
04dd7510 335 - Massive changes to the way Immutable is done
336 for details see comments next to make_immutable
337 This fixes a bug where custom metaclasses broke
d7d3f3cb 338 when made immutable. We are now keeping one immutable
339 metaclass instance per metaclass instead of just one
04dd7510 340 to prevent isa hierarchy corruption. Memory use will go
341 up, but I suspect it will be neglible.
342 - New tests added for this behavior. (groditi)
7c90a1a8 343
c0fcd6ab 3440.38 Thurs. May 31, 2007
823a5d31 345 ~~ More documentation updates ~~
d7d3f3cb 346
823a5d31 347 * Class::MOP::Package
348 - we now deal with stub methods properly
349 - added tests for this
c0fcd6ab 350 - fixed some tests failing on 5.9.5 (thanks blblack)
d7d3f3cb 351
b25109b1 352 * Class::MOP::Attribute
353 - added get_read_method and get_write_method
d7d3f3cb 354 thanks to groditi for this code, tests
c81de280 355 and docs.
b25109b1 356 - added tests and POD for this
d7d3f3cb 357
795a0c8b 358 * Class::MOP::Class
d7d3f3cb 359 - fixed RT issue #27329, clone object now
795a0c8b 360 handles undef values correctly.
361 - added tests for this
d7d3f3cb 362 - Corrected anon-class handling so that they
363 will not get reaped when instances still
364 exist which need to reference them. This is
365 the correct behavior, hopefully this is an
366 obscure enough feature that there are not too
d4ba1677 367 many work arounds out in the wild.
d7d3f3cb 368 - added tests for this by groditi
95514cb4 369 - updated docs to explain this
370
371 * metaclass
c0fcd6ab 372 - load custom metaclasses automatically (thanks groditi)
f2266181 373 - added tests for this behavior
a06797b0 374
3dc99d93 3750.37 Sat. March 10, 2007
448b6e55 376 ~~ Many, many documentation updates ~~
d7d3f3cb 377
448b6e55 378 * Class::MOP
d7d3f3cb 379 - added &load_class and &is_class_loaded
448b6e55 380 - added tests and docs for these
2367814a 381
9363ea89 382 * Class::MOP::Attribute
d7d3f3cb 383 - default now checks the instance with defined to
9363ea89 384 avoid setting off bool-overloads (found by Carl Franks)
385
c23184fc 3860.37_002
d7d3f3cb 387 * /t
388 - bad name in a test, causing meaningless failuress.
c23184fc 389 No other changes.
390
3910.37_001
d7d3f3cb 392
c23184fc 393 ~~ GLOBAL CHANGES ~~
d7d3f3cb 394 - All attribute names are now consistent and follow Perl 6
395 style (prefixed with the sigil, and ! as the twigil for
396 private attrs). This should not affect any code, unless
397 you broke encapsulation, in which case, it is your problem
c23184fc 398 anyway.
d7d3f3cb 399
c23184fc 400 !! Class::MOP::Class::Immutable has been removed
d7d3f3cb 401
c23184fc 402 * Class::MOP::Method::Constructor
d7d3f3cb 403 - this has been moved out of Class::MOP::Class::Immutable
c23184fc 404 and is a proper subclass of Class::MOP::Method now.
d7d3f3cb 405
c23184fc 406 * Class::MOP::Class
d7d3f3cb 407 - this module now uses Class::MOP::Immutable for the
408 immutable transformation instead of
c23184fc 409 Class::MOP::Class::Immutable.
d7d3f3cb 410
411 + Class::MOP::Immutable
412 - this module now controls the transformation from a mutable
413 to an immutable version of the class. Docs for this will
c23184fc 414 be coming eventually.
d7d3f3cb 415
c23184fc 416
cdc1ecba 4170.36 Sun. Nov. 5, 2006
a651e249 418 * Class::MOP::Class
d7d3f3cb 419 - added a few 'no warnings' lines to keep annoying
420 (and meaningless) warnings from chirping during
a651e249 421 global destruction.
d7d3f3cb 422
0870928c 423 * Class::MOP
d7d3f3cb 424 - some more bootstrapping is now done on the new
0870928c 425 classes
d7d3f3cb 426
0870928c 427 * Class::MOP::Class::Immutable
d7d3f3cb 428 *** API CHANGE ***
429 - constructor generation is now handled by
0870928c 430 the Class::MOP::Method::Constructor class
d7d3f3cb 431
0870928c 432 * Class::MOP::Method::Constructor
d7d3f3cb 433 - created this to handle constructor generation
0870928c 434 in Class::MOP::Class::Immutable
d7d3f3cb 435
0870928c 436 * Class::MOP::Attribute
d7d3f3cb 437 *** API CHANGE ***
438 - attributes now delegate to the
439 Class::MOP::Method::Accessor to generate
0870928c 440 accessors
d7d3f3cb 441
0870928c 442 * Class::MOP::Method::Accessor
d7d3f3cb 443 - all accessor generation functions from
0870928c 444 Class::MOP::Attribute have been moved here
a651e249 445
80f00c79 4460.35 Sat. Sept. 30, 2006
8745cf22 447
448 * scripts/class_browser.pl
d7d3f3cb 449 - initial prototype of a class browser, more
450 on this to come. Comments and patches are
8745cf22 451 very much welcome.
b1897d4d 452
453 * Class::MOP
d7d3f3cb 454 - All Class::MOP::* accessors are no longer
455 re-generated in the bootstrap, instead
6d2118a4 456 they are aliased from the originals
6d2118a4 457 - fixed tests to reflect
d7d3f3cb 458 - added Class::MOP::Method (and its subclasses)
b1897d4d 459 to the bootstrap
460 - adjusted tests for this
86482605 461 - added the Class::MOP::Instance attributes
462 to the bootstrap
d7d3f3cb 463
b1897d4d 464 * Class::MOP::Method
465 *** API CHANGE ***
466 - methods are no longer blessed CODE refs
467 but are actual objects which can be CODE-ified
468 - adjusted tests to compensate
d7d3f3cb 469 - adjusted docs for this
b1897d4d 470
471 * Class::MOP::Class
d7d3f3cb 472 - changed how methods are dealt with to
473 encapsulate most of the work into the
b1897d4d 474 &get_method_map method
475 - made several adjustments for the change
476 in Class::MOP::Method
d7d3f3cb 477 - &add_attribute now checks if you are adding
478 a duplicate name, and properly removes the
b1897d4d 479 old one before installing the new one
480 - added tests for this
86482605 481 - adjusted docs for this
d7d3f3cb 482
b1897d4d 483 * Class::MOP::Class::Immutable
484 - added caching of &get_method_map
485 - fixed issue with &get_package_symbol
486 - cleaned up the methods that die (patch by David Wheeler)
d7d3f3cb 487
b1897d4d 488 * Class::MOP::Package
d7d3f3cb 489 - added filtering capabilities to
b1897d4d 490 &list_all_package_symbols
491
a549ce50 4920.34 Sat. Aug. 26, 2006
c4260b45 493 * Class::MOP::Class
494 - added the %:methods attribute, which like
d7d3f3cb 495 the $:version and such just actually goes
496 to the symbol table to get it's stuff.
c4260b45 497 However, it makes the MOP more complete.
88dd563c 498 ** API CHANGE **
d7d3f3cb 499 - The &create method now requires that all
500 but the package name now is passed in as
88dd563c 501 named parameters. See docs for more info.
502 - updated docs and tests for this
d7d3f3cb 503
c4260b45 504 * Class::MOP::Object
d7d3f3cb 505 - added &dump method to easily Data::Dumper
c4260b45 506 an object
d7d3f3cb 507
c4260b45 508 * Class::MOP
d7d3f3cb 509 - cleaned up the initialization of attributes
510 which do not store things in the instance
c4260b45 511 - added the %:methods attribute definition to
512 the bootstrap
d7d3f3cb 513
88dd563c 514 ~ lots of misc. test cleanup
c4260b45 515
56e8dd5d 5160.33 Sat. Aug. 19, 2006
be7677c7 517 * Class::MOP::Class
d7d3f3cb 518 - moved the metaclass cache out of here
be7677c7 519 and it is now in Class::MOP itself.
d7d3f3cb 520
56e8dd5d 521 * Class::MOP
522 - moved all the metaclass cache stuff here
523 - fixed all tests for this
be7677c7 524
148b4697 525 * Class::MOP::Attribute
d7d3f3cb 526 - reference values (other than CODE refs)
148b4697 527 are no longer allowed for defaults
528 - added tests for this
d7d3f3cb 529
56dcfc1a 530 * Class::MOP::Package
d7d3f3cb 531 - fixed an issue with perl 5.8.1 and how it deals
532 with symbol tables. The namespace hash is now
533 always reloaded from the symbol table.
e3a2c885 534
535 ~ lots of misc. documentation cleanup
1396f86b 536
716c5765 5370.32 Sat. Aug. 12, 2006
d7d3f3cb 538 + added Class::MOP::Object so that the
6e57504d 539 metamodel is more complete (and closer
540 to what Perl 6 will probably be).
541
9ca19585 542 * Class::MOP::Package
d7d3f3cb 543 - refactored entire class, this is now
9ca19585 544 the primary gateway between the metaclass
545 and the Perl 5 symbol table
546 - added many tests for this
d7d3f3cb 547 - this class is now a subclass of
6e57504d 548 Class::MOP::Object
716c5765 549 - added some tests to reflect this
d7d3f3cb 550
9ca19585 551 * Class::MOP::Class
d7d3f3cb 552 - refactored all symbol table access to
9ca19585 553 use Class::MOP::Package methods instead
d7d3f3cb 554
f0480c45 555 * Class::MOP::Module
556 - adding the $:version attribute in the bootstrap
557 so that Module has a version as an attribute
558 - see comment in Class::MOP for details
d7d3f3cb 559 - added the $:authority attribute to this module
560 as well as an &identifier method, to bring us
561 ever closer to Perl 6 goodness
562 - I have added $AUTHORITY to all the modules
716c5765 563 - added tests for this
d7d3f3cb 564
f0480c45 565 * Class::MOP::Instance
d7d3f3cb 566 - added &deinitialize_slot for removing slots
f0480c45 567 from an instance
d7d3f3cb 568 - added tests for this
569
570 * Class::MOP::Attribute
9ca19585 571 - added support for &deinitialize_slot for removing
572 slots from an instance
573 - added tests for this
574
1a09d9cc 5750.31 Sat. July 15, 2006
576
b679e644 577 * Class::MOP::Class
578 - added &find_method_by_name to locate a method
d7d3f3cb 579 anywhere within the class hierarchy
580
b679e644 581 * Class::MOP::Attribute
d7d3f3cb 582 - added &set_value and &get_value for getting
583 the value of the attribute for a particular
b679e644 584 instance.
585
373a16ae 5860.30 Wed. July 5, 2006
587 ---------------------------------------
d7d3f3cb 588 This is the first version of Class::MOP
373a16ae 589 to introduce the immutable features which
d7d3f3cb 590 will be used for optimizating the MOP.
373a16ae 591 This support should still be considered
592 experimental, but moving towards stability.
593 ---------------------------------------
d7d3f3cb 594
595 * Created Class::MOP::Class::Immutable
596
597 * Created the Class::MOP::Package and
598 Class::MOP::Module classes to more
373a16ae 599 closely conform to Perl 6's meta-model
e0a82090 600
601 * Class::MOP::Class
602 - now inherits from Class::MOP::Module
d7d3f3cb 603 - several methods moved to ::Module and
e0a82090 604 ::Package and now inherited
605 - added tests for this
d7d3f3cb 606
c0cbf4d9 607 * Class::MOP::Instance
d7d3f3cb 608 - added an is_inlinable method to allow other
c0cbf4d9 609 classes to check before they attempt to optimize.
d7d3f3cb 610 - added an inline_create_instance to inline
611 instance creation (of course)
612
2ba153a9 613 ** API CHANGE **
d7d3f3cb 614 - the Class::MOP::Class::*_package_variable
2ba153a9 615 methods are all now methods of Class::MOP::Package
d7d3f3cb 616 and called *_package_symbol instead. This is
617 because they are now more general purpose symbol
618 table manipulation methods.
e0a82090 619
cdfaa4cc 6200.29_02 Thurs. June 22, 2006
621 ++ DEVELOPER RELEASE ++
df7b4119 622 * Class::MOP::Class
d7d3f3cb 623 - small change in &create so that it behaves
df7b4119 624 properly when inherited
cdfaa4cc 625 - small fix to &clone_instance
df7b4119 626
667cecf3 6270.29_01 Fri. May 12, 2006
628 ++ DEVELOPER RELEASE ++
d7d3f3cb 629 - This release works in combination with
667cecf3 630 Moose 0.09_01, it is a developer release
d7d3f3cb 631 because it introduces a new instance
632 sub-protocol and has not yet been
633 optimized.
667cecf3 634
40483095 635 * Class::MOP::Class
636 - anon-classes are now properly garbage collected
d7d3f3cb 637 - added tests for this
638 - improved method modifier wrapping
40483095 639
2bab2be6 640 * Class::MOP::Instance
1becdfcc 641 - added new instance protocol
2bab2be6 642 - added tests for this
643 - changed all relevant modules and examples
644 - Class::MOP::Class
645 - Class::MOP::Attribute
646 - examples/*
647
1becdfcc 648 * metaclass
649 - you no longer need to specify the metaclass
650 itself, if it is not there, Class::MOP::Class
651 is just assumed
652 - updated tests for this
653
654 * examples/
d7d3f3cb 655 - added ArrayBasedStorage example to show
1becdfcc 656 instance storage using ARRAY refs instead of
d7d3f3cb 657 HASH refs.
1becdfcc 658 - added tests for this
d7d3f3cb 659 - InsideOutClass is totally revised using the
1becdfcc 660 new instance protocol
661 - added more tests for this
662
93b4e576 6630.26 Mon. April 24, 2006
e7f732e4 664 * Class::MOP::Class
665 - added find_attribute_by_name method
666 - added tests and docs for this
56a0b530 667 - some small optimizations
668
669 * Class::MOP::Attribute
670 - some small optimizations
e7f732e4 671
46666f33 6720.25 Thurs. April 20, 2006
587aca23 673 * Class::MOP::Class
674 - added create_anon_class for creating anonymous classes
675 - added tests for this
676 - added get_all_metaclasses, get_all_metaclass_names
677 and get_all_metaclass_instances method to allow
678 access to all the cached metaclass objects.
bd4e03f9 679 - attribute slot initialization is now the responsibility
d7d3f3cb 680 of the attribute itself, and construct_instance now
bd4e03f9 681 delegates appropriately
d7d3f3cb 682
bd4e03f9 683 * Class::MOP::Attribute
684 - attribute slot initialization is now the responsibility
685 of the attribute itself, so we added a method for it
686 called initialize_instance_slot
d7d3f3cb 687
fed4cee7 688 * examples/
d7d3f3cb 689 - adjusted all the examples to use the new attribute
690 initialize_instance_slot method
587aca23 691
1daaa2b2 6920.24 Tues. April 11, 2006
8c936afc 693 * Class::MOP::Class
d7d3f3cb 694 - cleaned up how the before/after/around method
8c936afc 695 modifiers get named with Sub::Name
696
b9dfbf78 6970.23 Thurs. March 30, 2006
a977cf65 698 * Class::MOP::Class
d7d3f3cb 699 - fixed the way attribute defaults are handled
a977cf65 700 during instance construction (bug found by chansen)
d7d3f3cb 701
b9dfbf78 702 * Class::MOP::Attribute
d7d3f3cb 703 - read-only accessors ('reader') will now die if
b9dfbf78 704 passed more than one argument (attempting to write
705 to them basically)
706 - added tests for this
d7d3f3cb 707 - adjusted all /example files to comply
a977cf65 708
f9eba090 7090.22 Mon. March 20, 2006
0eff2c16 710 * Class::MOP::Class
711 - localized $@ in the *_package_variable functions
712 because otherwise, it does ugly things in Moose.
713 - added test case for this
714
1988e85e 7150.21 Wed. March 15, 2006
2f6d5412 716 * Class::MOP::Class
d7d3f3cb 717 - fixed issue where metaclasses are reaped from
2f6d5412 718 our cache in global destruction, and so are not
719 available in DESTORY calls
720
96ceced8 7210.20 Thurs. March 2, 2006
d7d3f3cb 722 - removed the dependency for Clone since
d3cb0d4a 723 we no longer to deep-cloning by default.
d7d3f3cb 724
a4258ffd 725 * Class::MOP::Method
d7d3f3cb 726 - added &package_name, &name and
727 &fully_qualified_name methods, some of
728 which were formerly private subs in
a4258ffd 729 Class::MOP::Class
d7d3f3cb 730
a4258ffd 731 * Class::MOP::Method::Wrapped
d7d3f3cb 732 - allows for a method to be wrapped with
733 before, after and around modifiers
a4258ffd 734 - added tests and docs for this feature
d3cb0d4a 735
736 * Class::MOP::Class
58d75218 737 - improved &get_package_symbol
96ceced8 738 - &version and &superclasses now use it
a4258ffd 739 - methods are now blessed into Class::MOP::Method
740 whenever possible
d7d3f3cb 741 - added methods to install CLOS-style method modifiers
a4258ffd 742 - &add_before_method_modifier
d7d3f3cb 743 - &add_after_method_modifier
a4258ffd 744 - &add_around_method_modifier
745 - added tests and docs for these
d7d3f3cb 746 - added &find_next_method_by_name which finds the
96ceced8 747 equivalent of SUPER::method_name
d3cb0d4a 748
1c020571 7490.12 Thurs. Feb 23, 2006
d7d3f3cb 750 - reduced the dependency on B, no need to always
d89c0fad 751 have the latest
752
1c020571 753 * examples/
754 - added docs to the C3 method dispatch order test
d7d3f3cb 755 - fixed missing Algorithm::C3 dependency by making
1c020571 756 the test skip if it is not installed
757
0dea7280 7580.11 Mon Feb. 20, 2006
f3f5bd34 759 * examples/
760 - added example of changing method dispatch order to C3
d7d3f3cb 761
a27ae83f 762 * Class::MOP::Class
19d4b5b8 763 - changed how clone_instance behaves, it now only does a
764 shallow clone (see docs for more details)
a27ae83f 765 - added docs and tests
f3f5bd34 766
3bf7644b 7670.10 Tues Feb. 14, 2006
d7d3f3cb 768 ** This release was mostly about writing more tests and
769 cleaning out old and dusty code, the MOP should now
3bf7644b 770 be considered "ready to use".
771
22286063 772 - adding more tests to get coverage up a little higher,
773 mostly testing errors and edge cases.
774 - test coverage is now at 99%
d7d3f3cb 775
aa448b16 776 * Class::MOP
777 - no longer optionally exports to UNIVERSAL::meta or
d7d3f3cb 778 creates a custom metaclass generator, use the
aa448b16 779 metaclass pragma instead.
22286063 780
d7d3f3cb 781 * Class::MOP::Class
782 - fixed a number of minor issues which came up in the
783 error/edge-case tests
784
785 * Class::MOP::Attribute
786 - fixed a number of minor issues which came up in the
22286063 787 error/edge-case tests
d7d3f3cb 788
0b8eb325 789 * examples/
ea263060 790 - fixing the AttributesWithHistory example, it was broken.
663f8198 791
550d56db 7920.06 Thurs Feb. 9, 2006
677eb158 793 * metaclass
d7d3f3cb 794 - adding new metaclass pragma to make setting up the
677eb158 795 metaclass a little more straightforward
d7d3f3cb 796
7b31baf4 797 * Class::MOP
d7d3f3cb 798 - clean up bootstrapping to include more complete
799 attribute definitions for Class::MOP::Class and
800 Class::MOP::Attribute (accessors, readers, writers,
7b31baf4 801 etc.) ... it is redundant, but is useful meta-info
802 to have around.
677eb158 803
99e5b7e8 804 * Class::MOP::Class
d7d3f3cb 805 - fixing minor meta-circularity issue with &meta, it
99e5b7e8 806 is now more useful for subclasses
d7d3f3cb 807 - added &get_attribute_map as an accessor for the
7b31baf4 808 hash of attribute meta objects
c9e77dbb 809 - &compute_all_applicable_attributes now just returns
810 the attribute meta-object, rather than the HASH ref
d7d3f3cb 811 since all the same info can be gotten from the
c9e77dbb 812 attribute meta-object itself
813 - updated docs & tests to reflect
5f3c057a 814 - added &clone_instance method which does a deep clone
815 of the instance structure created by &construct_instance
816 - added docs & tests for this
550d56db 817 - added Clone as a dependency
5f3c057a 818 - added &new_object and &clone_object convience methods to
819 return blessed new or cloned instances
2a7575a6 820 - they handle Class::MOP::Class singletons correctly too
5f3c057a 821 - added docs & tests for this
2a7575a6 822 - cleaned up the &constuct_class_instance so that it behaves
823 more like &construct_instance (and managed the singletons too)
550d56db 824 - added the &check_metaclass_compatibility method to make sure
825 that metaclasses are upward and downward compatible.
826 - added tests and docs for this
d7d3f3cb 827
99e5b7e8 828 * examples/
829 - adjusting code to use the &Class::MOP::Class::meta
830 fix detailed above
677eb158 831 - adjusting code to use the metaclass pragma
d7d3f3cb 832
aa9c883e 8330.05 Sat Feb. 4, 2006
2e41896e 834 * Class::MOP::Class
835 - added the &attribute_metaclass and &method_metaclass
d7d3f3cb 836 attributes which contain a metaclass name to use for
2e41896e 837 attributes/methods respectively
d7d3f3cb 838
351bd7d4 839 * Class::MOP
d7d3f3cb 840 - bootstrap additional attributes for Class::MOP::Class
841
2e41896e 842 * examples/
843 - adjusted the example code and tests to use the new
844 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 845 - added new example:
846 - LazyClass
2e41896e 847
d7c2cbe3 8480.04 Fri Feb. 3, 2006
d6fbcd05 849 * Class::MOP::Class
850 - some documentation suggestions from #perl6
d7d3f3cb 851
d6fbcd05 852 * Class::MOP::Attribute
d7d3f3cb 853 - improved error messages
854
d6fbcd05 855 * examples/
856 - added new examples:
857 - AttributesWithHistory
d7c2cbe3 858 - ClassEncapsultedAttributes
343203ee 859
9ec169fe 8600.03 Fri Feb. 3, 2006
861 - converted to Module::Build instead of EU::MM
d7d3f3cb 862
9ec169fe 863 * Class::MOP::Attribute
864 - refactored method generation code
865 - attributes are now associated with class directly
d7d3f3cb 866
f71f4295 867 * examples/
d7d3f3cb 868 - refactored the InsideOut example to take advantage
9ec169fe 869 of the Class::MOP::Attribute refactoring
f71f4295 870 - changed example files to .pod files and hide thier
871 package names from PAUSE (I don't want to own these
872 namespaces really, they are just examples)
9ec169fe 873
a57c7fa2 8740.02 Thurs Feb. 2, 2006
875 - moving examples from t/lib/* to examples/*
876 - adding POD documentation to the examples
877
a2e85e6c 8780.01 Thurs Feb. 2, 2006
92af7fdf 879 - Initial release