adding Class::MOP::Object
[gitmo/Class-MOP.git] / Changes
CommitLineData
7c90a1a8 1Revision history for Perl extension Class-MOP.
2
9ca19585 30.32
6e57504d 4 + added Class::MOP::Object so that the
5 metamodel is more complete (and closer
6 to what Perl 6 will probably be).
7
9ca19585 8 * Class::MOP::Package
9 - refactored entire class, this is now
10 the primary gateway between the metaclass
11 and the Perl 5 symbol table
12 - added many tests for this
6e57504d 13 - this class is now a subclass of
14 Class::MOP::Object
9ca19585 15
16 * Class::MOP::Class
17 - refactored all symbol table access to
18 use Class::MOP::Package methods instead
f0480c45 19
20 * Class::MOP::Module
21 - adding the $:version attribute in the bootstrap
22 so that Module has a version as an attribute
23 - see comment in Class::MOP for details
24 - added the $:authority attribute to this module
25 as well as an &identifier method, to bring us
26 ever closer to Perl 6 goodness
9ca19585 27
f0480c45 28 * Class::MOP::Instance
29 - added &deinitialize_slot for removing slots
30 from an instance
31 - added tests for this
9ca19585 32
33 * Class::MOP::Attribute
34 - added support for &deinitialize_slot for removing
35 slots from an instance
36 - added tests for this
37
1a09d9cc 380.31 Sat. July 15, 2006
39
b679e644 40 * Class::MOP::Class
41 - added &find_method_by_name to locate a method
42 anywhere within the class hierarchy
43
44 * Class::MOP::Attribute
45 - added &set_value and &get_value for getting
46 the value of the attribute for a particular
47 instance.
48
373a16ae 490.30 Wed. July 5, 2006
50 ---------------------------------------
51 This is the first version of Class::MOP
52 to introduce the immutable features which
53 will be used for optimizating the MOP.
54 This support should still be considered
55 experimental, but moving towards stability.
56 ---------------------------------------
e0a82090 57
373a16ae 58 * Created Class::MOP::Class::Immutable
be960ba1 59
373a16ae 60 * Created the Class::MOP::Package and
61 Class::MOP::Module classes to more
62 closely conform to Perl 6's meta-model
e0a82090 63
64 * Class::MOP::Class
65 - now inherits from Class::MOP::Module
66 - several methods moved to ::Module and
67 ::Package and now inherited
68 - added tests for this
c0cbf4d9 69
70 * Class::MOP::Instance
71 - added an is_inlinable method to allow other
72 classes to check before they attempt to optimize.
be960ba1 73 - added an inline_create_instance to inline
74 instance creation (of course)
75
2ba153a9 76 ** API CHANGE **
77 - the Class::MOP::Class::*_package_variable
78 methods are all now methods of Class::MOP::Package
79 and called *_package_symbol instead. This is
80 because they are now more general purpose symbol
81 table manipulation methods.
e0a82090 82
cdfaa4cc 830.29_02 Thurs. June 22, 2006
84 ++ DEVELOPER RELEASE ++
df7b4119 85 * Class::MOP::Class
86 - small change in &create so that it behaves
87 properly when inherited
cdfaa4cc 88 - small fix to &clone_instance
df7b4119 89
667cecf3 900.29_01 Fri. May 12, 2006
91 ++ DEVELOPER RELEASE ++
92 - This release works in combination with
93 Moose 0.09_01, it is a developer release
94 because it introduces a new instance
95 sub-protocol and has not yet been
96 optimized.
97
40483095 98 * Class::MOP::Class
99 - anon-classes are now properly garbage collected
100 - added tests for this
195f5bf8 101 - improved method modifier wrapping
40483095 102
2bab2be6 103 * Class::MOP::Instance
1becdfcc 104 - added new instance protocol
2bab2be6 105 - added tests for this
106 - changed all relevant modules and examples
107 - Class::MOP::Class
108 - Class::MOP::Attribute
109 - examples/*
110
1becdfcc 111 * metaclass
112 - you no longer need to specify the metaclass
113 itself, if it is not there, Class::MOP::Class
114 is just assumed
115 - updated tests for this
116
117 * examples/
118 - added ArrayBasedStorage example to show
119 instance storage using ARRAY refs instead of
120 HASH refs.
121 - added tests for this
122 - InsideOutClass is totally revised using the
123 new instance protocol
124 - added more tests for this
125
93b4e576 1260.26 Mon. April 24, 2006
e7f732e4 127 * Class::MOP::Class
128 - added find_attribute_by_name method
129 - added tests and docs for this
56a0b530 130 - some small optimizations
131
132 * Class::MOP::Attribute
133 - some small optimizations
e7f732e4 134
46666f33 1350.25 Thurs. April 20, 2006
587aca23 136 * Class::MOP::Class
137 - added create_anon_class for creating anonymous classes
138 - added tests for this
139 - added get_all_metaclasses, get_all_metaclass_names
140 and get_all_metaclass_instances method to allow
141 access to all the cached metaclass objects.
bd4e03f9 142 - attribute slot initialization is now the responsibility
143 of the attribute itself, and construct_instance now
144 delegates appropriately
145
146 * Class::MOP::Attribute
147 - attribute slot initialization is now the responsibility
148 of the attribute itself, so we added a method for it
149 called initialize_instance_slot
fed4cee7 150
151 * examples/
152 - adjusted all the examples to use the new attribute
153 initialize_instance_slot method
587aca23 154
1daaa2b2 1550.24 Tues. April 11, 2006
8c936afc 156 * Class::MOP::Class
157 - cleaned up how the before/after/around method
158 modifiers get named with Sub::Name
159
b9dfbf78 1600.23 Thurs. March 30, 2006
a977cf65 161 * Class::MOP::Class
162 - fixed the way attribute defaults are handled
163 during instance construction (bug found by chansen)
b9dfbf78 164
165 * Class::MOP::Attribute
166 - read-only accessors ('reader') will now die if
167 passed more than one argument (attempting to write
168 to them basically)
169 - added tests for this
170 - adjusted all /example files to comply
a977cf65 171
f9eba090 1720.22 Mon. March 20, 2006
0eff2c16 173 * Class::MOP::Class
174 - localized $@ in the *_package_variable functions
175 because otherwise, it does ugly things in Moose.
176 - added test case for this
177
1988e85e 1780.21 Wed. March 15, 2006
2f6d5412 179 * Class::MOP::Class
180 - fixed issue where metaclasses are reaped from
181 our cache in global destruction, and so are not
182 available in DESTORY calls
183
96ceced8 1840.20 Thurs. March 2, 2006
d3cb0d4a 185 - removed the dependency for Clone since
186 we no longer to deep-cloning by default.
a4258ffd 187
188 * Class::MOP::Method
96ceced8 189 - added &package_name, &name and
190 &fully_qualified_name methods, some of
a4258ffd 191 which were formerly private subs in
192 Class::MOP::Class
193
194 * Class::MOP::Method::Wrapped
195 - allows for a method to be wrapped with
196 before, after and around modifiers
197 - added tests and docs for this feature
d3cb0d4a 198
199 * Class::MOP::Class
58d75218 200 - improved &get_package_symbol
96ceced8 201 - &version and &superclasses now use it
a4258ffd 202 - methods are now blessed into Class::MOP::Method
203 whenever possible
a4258ffd 204 - added methods to install CLOS-style method modifiers
205 - &add_before_method_modifier
206 - &add_after_method_modifier
207 - &add_around_method_modifier
208 - added tests and docs for these
96ceced8 209 - added &find_next_method_by_name which finds the
210 equivalent of SUPER::method_name
d3cb0d4a 211
1c020571 2120.12 Thurs. Feb 23, 2006
d89c0fad 213 - reduced the dependency on B, no need to always
214 have the latest
215
1c020571 216 * examples/
217 - added docs to the C3 method dispatch order test
218 - fixed missing Algorithm::C3 dependency by making
219 the test skip if it is not installed
220
0dea7280 2210.11 Mon Feb. 20, 2006
f3f5bd34 222 * examples/
223 - added example of changing method dispatch order to C3
a27ae83f 224
225 * Class::MOP::Class
19d4b5b8 226 - changed how clone_instance behaves, it now only does a
227 shallow clone (see docs for more details)
a27ae83f 228 - added docs and tests
f3f5bd34 229
3bf7644b 2300.10 Tues Feb. 14, 2006
231 ** This release was mostly about writing more tests and
232 cleaning out old and dusty code, the MOP should now
233 be considered "ready to use".
234
22286063 235 - adding more tests to get coverage up a little higher,
236 mostly testing errors and edge cases.
237 - test coverage is now at 99%
aa448b16 238
239 * Class::MOP
240 - no longer optionally exports to UNIVERSAL::meta or
241 creates a custom metaclass generator, use the
242 metaclass pragma instead.
22286063 243
244 * Class::MOP::Class
245 - fixed a number of minor issues which came up in the
246 error/edge-case tests
247
248 * Class::MOP::Attribute
249 - fixed a number of minor issues which came up in the
250 error/edge-case tests
251
0b8eb325 252 * examples/
ea263060 253 - fixing the AttributesWithHistory example, it was broken.
663f8198 254
550d56db 2550.06 Thurs Feb. 9, 2006
677eb158 256 * metaclass
550d56db 257 - adding new metaclass pragma to make setting up the
677eb158 258 metaclass a little more straightforward
7b31baf4 259
260 * Class::MOP
261 - clean up bootstrapping to include more complete
262 attribute definitions for Class::MOP::Class and
263 Class::MOP::Attribute (accessors, readers, writers,
264 etc.) ... it is redundant, but is useful meta-info
265 to have around.
677eb158 266
99e5b7e8 267 * Class::MOP::Class
268 - fixing minor meta-circularity issue with &meta, it
269 is now more useful for subclasses
7b31baf4 270 - added &get_attribute_map as an accessor for the
271 hash of attribute meta objects
c9e77dbb 272 - &compute_all_applicable_attributes now just returns
273 the attribute meta-object, rather than the HASH ref
274 since all the same info can be gotten from the
275 attribute meta-object itself
276 - updated docs & tests to reflect
5f3c057a 277 - added &clone_instance method which does a deep clone
278 of the instance structure created by &construct_instance
279 - added docs & tests for this
550d56db 280 - added Clone as a dependency
5f3c057a 281 - added &new_object and &clone_object convience methods to
282 return blessed new or cloned instances
2a7575a6 283 - they handle Class::MOP::Class singletons correctly too
5f3c057a 284 - added docs & tests for this
2a7575a6 285 - cleaned up the &constuct_class_instance so that it behaves
286 more like &construct_instance (and managed the singletons too)
550d56db 287 - added the &check_metaclass_compatibility method to make sure
288 that metaclasses are upward and downward compatible.
289 - added tests and docs for this
5f3c057a 290
99e5b7e8 291 * examples/
292 - adjusting code to use the &Class::MOP::Class::meta
293 fix detailed above
677eb158 294 - adjusting code to use the metaclass pragma
99e5b7e8 295
aa9c883e 2960.05 Sat Feb. 4, 2006
2e41896e 297 * Class::MOP::Class
298 - added the &attribute_metaclass and &method_metaclass
351bd7d4 299 attributes which contain a metaclass name to use for
2e41896e 300 attributes/methods respectively
351bd7d4 301
302 * Class::MOP
303 - bootstrap additional attributes for Class::MOP::Class
2e41896e 304
305 * examples/
306 - adjusted the example code and tests to use the new
307 &attribute_metaclass feature of Class::MOP::Class
aa9c883e 308 - added new example:
309 - LazyClass
2e41896e 310
d7c2cbe3 3110.04 Fri Feb. 3, 2006
d6fbcd05 312 * Class::MOP::Class
313 - some documentation suggestions from #perl6
314
315 * Class::MOP::Attribute
316 - improved error messages
317
318 * examples/
319 - added new examples:
320 - AttributesWithHistory
d7c2cbe3 321 - ClassEncapsultedAttributes
343203ee 322
9ec169fe 3230.03 Fri Feb. 3, 2006
324 - converted to Module::Build instead of EU::MM
325
326 * Class::MOP::Attribute
327 - refactored method generation code
328 - attributes are now associated with class directly
329
f71f4295 330 * examples/
9ec169fe 331 - refactored the InsideOut example to take advantage
332 of the Class::MOP::Attribute refactoring
f71f4295 333 - changed example files to .pod files and hide thier
334 package names from PAUSE (I don't want to own these
335 namespaces really, they are just examples)
9ec169fe 336
a57c7fa2 3370.02 Thurs Feb. 2, 2006
338 - moving examples from t/lib/* to examples/*
339 - adding POD documentation to the examples
340
a2e85e6c 3410.01 Thurs Feb. 2, 2006
7c90a1a8 342 - Initial release