Debian Codegraph @

Changes

raw
1 Revision history for Object-Pad
2
3 0.825 2026-03-25
4 [CHANGES]
5 * Don't provoke warnings of freed unreferenced scalars when
6 cancelling suspended methods (RT174087)
7
8 0.824 2026-03-24
9 [CHANGES]
10 * Support anonymous and captured `method` closures inside roles,
11 allowing them to still be invoked on known-applied class instances
12 * Requires Perl version 5.22, removing a lot of back-compatibility
13 code previously guarded by `#ifdef`s
14
15 [BUGFIXES]
16 * Don't crash if lexicals that capture fields are rebound using
17 refalias assignment
18
19 0.823 2025-12-08
20 [CHANGES]
21 * Added internals to support Feature::Compat::Class restricting the
22 `:writer` attribute to just scalars, to match perl 5.42
23 * Document and test that a class method can be called `new` and still
24 use the lexical constructor
25
26 0.822 2025-11-30
27 [CHANGES]
28 * Added `:lexical_new` class attribute to assist in various design
29 patterns and API shapes
30
31 0.821 2025-07-12
32 [CHANGES]
33 * Don't apply implied pragmata on `class` or `role` keywords if the
34 imported version is 0.821 or above
35 * Consistently refer to `BUILD`, `ADJUST` and `APPLY` as phasers, not
36 blocks
37
38 [BUGFIXES]
39 * Ensure that methods of lexical classes are actually able to use
40 lexical variables (RT168139)
41
42 0.820 2025-02-26
43 [BUGFIXES]
44 * Account for perl 5.41.9's GV-less stash optimisation (RT159823)
45
46 0.819 2025-01-10
47 [CHANGES]
48 * Initial experimental attempt to support lexical `my class` syntax
49 * Neater, smaller `hax/` files by squashing out code guarded on
50 versions of Perl before 5.18
51
52 0.818 2024-12-23
53 [BUGFIXES]
54 * Ensure that `method :common` works with the new `OP_ARGELEM` code
55 in the signature handling code (RT158048)
56
57 0.817 2024-12-20
58 [CHANGES]
59 * Initial attempt at supporting an `:abstract` attribute on classes.
60 Similar to roles but much simpler and easier to implement
61 * Much internal reƤrrangement of the way OP_METHSTART is set up, to
62 hopefully allow more seamless integration with upcoming core perl
63 `faster-signatures` branch work
64
65 0.816 2024-11-25
66 [CHANGES]
67 * Rewrote module introduction documentation, emphasising the relating
68 to core perl 'class' feature and `Feature::Compat::Class`
69 * Added a documentation file, giving a guide to migrating from
70 classical Perl to `Object::Pad`
71
72 [BUGFIXES]
73 * Fix for t/82devel-mat-dumper-helper.t should require `Devel::MAT`
74 v0.53 or later, in case DMD writes a file in format version 0.6
75 (RT157189)
76
77 0.815 2024-11-13
78 [CHANGES]
79 * Initial experiment at adding `APPLY` phaser blocks to roles
80
81 0.814 2024-09-20
82 [CHANGES]
83 * Depend on `XS::Parse::Sublike` v0.25 because of RT155630 bugfix
84 * Document and test the operation of `my method`
85
86 [BUGFIXES]
87 * Don't segfault when `->get_direct_method` fails to find the
88 requested method
89
90 0.813 2024-09-03
91 [CHANGES]
92 * Removed the `has` keyword; it now immediately throws a compiletime
93 error
94
95 [BUGFIXES]
96 * Ensure that the RHS of a field init expression permits any kind of
97 listexpr, including `( VAL ) x COUNT`
98 * Fix some docs typoes (thanks Nick Morrott) (RT155106)
99
100 0.812 2024-08-29
101 [BUGFIXES]
102 * Fix for perl 5.41.3, when `SAVEt_LONG` was removed
103
104 0.811 2024-08-21
105 [CHANGES]
106 * Accept requesting additional attributes to the
107 `$classmeta->add_field` MOP method
108 * XS API changes:
109 + `get_obj_fieldsv()` does not need to take a ClassMeta argument
110 + Added `mop_field_get_class()`
111 + Added `get_field_for_padix()`
112
113 0.810 2024-08-10
114 [CHANGES]
115 * Use `File::ShareDir` for storing .h include file, rather than
116 storing the contents in the `__DATA__` section of the build helper
117 * Added field hook function `gen_valueassert_op`
118 * Warn when enabling all experiments at once with an unqualified
119 `:experimental` import
120
121 [BUGFIXES]
122 * Don't attempt to reserve the embedding slot in the pad twice when
123 making roles under composed_adjust (RT154494)
124 * Ensure that field variables are not visible at compiletime of
125 :common methods (RT154639)
126
127 0.809 2024-07-14
128 [CHANGES]
129 * Experimental attempt at supporting anonymous `class` syntax
130 * Add an extra debugging aid in the form of "linnets", canary-like
131 values added to every struct and checked on pointer casts
132
133 [BUGFIXES]
134 * Do not create a `new` constructor method for roles, only classes
135 * Ensure perl doesn't attempt to free() a non-malloced pointer when
136 deleting a method of an invokable role (RT152793)
137 * Ensure that `Object::Pad::MOP::Class->for_class` is not confused by
138 non-OP subclasses
139 * Make sure not to embed CVs of `:common` methods because that will
140 upset any lexical or pad temporary at pad index 3
141
142 0.808 2023-12-28
143 [CHANGES]
144 * Added `Object::Pad::MOP::Class->try_for_class`
145 * Nicer error message when calling `->for_class` on a package not
146 implemented using Object::Pad
147
148 [BUGFIXES]
149 * Avoid adding `Object::Pad::UNIVERSAL` to the `@ISA` array more than
150 once (RT150794)
151
152 0.807 2023-12-11
153 [CHANGES]
154 * Added `inherit` and `apply` keywords in an attempt to make
155 subclassing and role-application more flexible in future
156 * Experimental new ability to "import" fields from superclasses into
157 subclasses, permitting subclasses to interact with base class
158 fields directly
159 * Allow setting the `OBJECTPAD_FLAG_ATTR_*_VALUE` flags when
160 registering a custom attribute via the Perl-level MOP API
161
162 0.806 2023-11-14
163 [CHANGES]
164 * Allow field initialiser expressions to see the values of other
165 fields already declared
166
167 0.805 2023-10-20
168 [CHANGES]
169 * Added an experimental feature to compose all ADJUST blocks into a
170 single CV
171 * Removed experimental warning from `ADJUST :params`
172
173 [BUGFIXES]
174 * Don't crash the `Devel::MAT::Dumper` helper if a class does not
175 have a parammap (RT150151)
176
177 0.804 2023-10-04
178 [CHANGES]
179 * Add `:repr(pvobj)` for Perl 5.38+
180 * Much internal code adjustment to support instances not backed by
181 `SVt_PVAV`
182
183 [BUGFIXES]
184 * Fix the METHSTART_CONTAINS_FIELD_BINDINGS optimisation that had been
185 recently broken, restoring its performance gains
186
187 0.803 2023-09-20
188 [CHANGES]
189 * Add `:repr(keys)` to use one hash key per field
190 * Performance improvements to constructor:
191 + Use `av_*_simple()` functions when operating on internal AVs
192 + Don't bother calling the universal `->BUILDARGS` method if the
193 class doesn't override it
194 + Calculate the argument count just once
195
196 0.802 2023-08-22
197 [CHANGES]
198 * Internal XS-level changes:
199 + Generate the basic accessor ops directly before invoking the
200 gen_accessor_ops chain, ensuring more reliable ordering
201 + Renamed the `post_initfields` field hook to `post_makefields` to
202 better reflect when it actually runs
203 * Removed the special-case warning about `method BUILD`
204 * Added docs to point out that `ADJUST` blocks see method-like field
205 lexicals
206
207 0.801 2023-08-10
208 [CHANGES]
209 * Warn at compiletime if `ADJUST` blocks perform out-of-block control
210 flow. This warning will become a compiletime error in a later
211 version
212 * Added `mop_class_get_attribute()` and
213 `mop_class_get_attribute_values()` to C-level API
214 * Removed the old `ClassHook->hookdata` and `FieldHook->hookdata`
215 variable aliases
216
217 [BUGFIXES]
218 * A better `sub VERSION` that works as a more transparent wrapper
219 (RT149357)
220
221 0.800 2023-08-09
222 [CHANGES]
223 * Switched to three-digit version numbering
224 * Removed experimental warnings from non-constant field initialiser
225 expressions
226 * Emit deprecation warnings at compiletime from `has` keyword
227 * Expanded documentation about the implied pragmata changes, which
228 will likely be removed entirely in a later version.
229 * Emit a warning if implied strict/warnings was enabled, conditional
230 on `use Object::Pad` with this version number or later.
231
232 0.79 2023-05-09
233 [CHANGES]
234 * Swap all unit tests from `Test::More` to `Test2::V0`
235 * Support `goto LABEL` entirely within a field initialiser block
236
237 [BUGFIXES]
238 * Docs fix for implied method names to match names of fields
239 (RT146092)
240 * Hide bleadperl's suspended compcv macros when redefining our own of
241 the same name
242
243 0.78 2023-01-12
244 [BUGFIXES]
245 * Don't complain about empty-list field initialisers being
246 non-constant (related to RT145618)
247 * Define more configuration options for `Feature::Compat::Class`
248
249 0.77 2022-12-19
250 [BUGFIXES]
251 * Fix C compiler errors and warnings
252 + Neater handling of OP_NULL in optrees; avoids error of a case
253 label applied to a declaration, which upsets non-gcc compilers
254 + Use PTR2UV / NUM2PTR pairs instead of plain casting
255
256 0.76 2022-12-16
257 [CHANGES]
258 * No longer consider `field VAR = CONST` experimental for constant
259 expressions
260 * Make field assignment and `ADJUST :params` slightly more efficient
261 by stealing new OP_HELEMEXISTSOR op from upcoming perl version
262 * Defined new ABI version 0.76
263 + Adds `pre_seal` and `post_seal` functions for class hooks
264
265 0.75 2022-12-14
266 [CHANGES]
267 * Support fields using `//=` and `||=` defaulting operators, to match
268 the core perl `class` feature
269 * Define more configuration options for `Feature::Compat::Class`
270
271 0.74 2022-12-04
272 [BUGFIXES]
273 * Ensure that all struct fields are initialised after Newx(), by
274 using a C99-style struct assignment, ensuring no uninitialised
275 behaviour (RT145289)
276
277 0.73 2022-12-03
278 [CHANGES]
279 * Accept `field VAR = EXPR;` syntax; evaluated within constructor
280 similarly to block form
281 * Generally prefer `field` over `has` in docs, unit tests, etc...
282 * Long-deprecated `extends` and `implements` keywords are now
283 immediate compile-time failures
284 * Extended the C-level extension API
285 + Added `get_compclassmeta()`
286 + Added `mop_class_add_method_cv()` and `mop_class_get_name()`
287 + Optional integration with XS::Parse::Keyword via the addition
288 of the `OPXKP_*` macros
289
290 [BUGFIXES]
291 * Account for bleadperl's slightly changed warning message of
292 "bareword found ..."
293
294 0.72 2022-11-30
295 [CHANGES]
296 * Accept `//=` and `||=` in named signature-like syntax for
297 `ADJUST :params` blocks
298 * Added `__CLASS__`
299 * Deprecate use of params hashref in `ADJUST` blocks; needs to be
300 written as `ADJUSTPARAMS`, which is not longer exactly synonymous
301 with `ADJUST`
302
303 0.71 2022-11-01
304 [CHANGES]
305 * Add a =head2 heading to docs on `ADJUST :params` for ease of
306 linking
307 * Support latest blead-perl which adds the xV_FROM_REF macros
308
309 [BUGFIXES]
310 * Make sure to deref the CODE reference to ->add_method before
311 stuffing it into the GV (RT144975)
312 * Avoid C99-style for() loop variable, to keep older MSWin32
313 compilers happy
314
315 0.70 2022-10-29
316 [CHANGES]
317 * Added `ADJUST :params`, which permits named parameters to ADJUST
318 blocks (currently experimental)
319
320 0.69 2022-10-25
321 [CHANGES]
322 * Internal tidying to the way the initfields stage of the constructor
323 works
324 * Support for Feature::Compat::Class to enable the :isa class
325 attribute alone
326
327 0.68 2022-08-13
328 [BUGFIXES]
329 * Wording fix in new Object::Pad::MetaFunctions docs
330 * Avoid label at end of compound statement (RT144005)
331
332 0.67 2022-08-12
333 [CHANGES]
334 * Added `Object::Pad::MetaFunctions` to contain some introspection
335 and reflection helper functions
336 * Avoid writing the rather silly-sounding `field $field` in docs;
337 use single-letter field names like `$x` or `$f` instead
338
339 0.66 2022-07-07
340 [CHANGES]
341 * Improved performance on perl 5.22 onwards, by merging the operation
342 of the individual pp_fieldpad ops into the main pp_methstart op
343 * Prepare compatibility with core's `use feature 'class'`:
344 + Support `field` keyword as a synonym of `has`, though without
345 immediate EXPR version
346 + Merge meaning of `ADJUST` and `ADJUSTPARAMS`; give all such
347 blocks a params hashref. `ADJUSTPARAMS` is now just a synonym
348 * Print "discouraged" warnings on `requires` keyword
349 * Print deprecation warnings on `isa` and `does` subkeywords
350 * Added list-returning ->get_attribute_values() accessor to
351 Object::Pad::MOP::Field
352 * Deleted legacy XS symbols relating to "slot" from before it was
353 renamed to "field"
354
355 0.65 2022-05-10
356 [CHANGES]
357 * Document the required version for :experimental tags
358 * Mention the new Devel::MAT::Tool::Object::Pad in docs
359
360 [BUGFIXES]
361 * Update cv_copy_flags() for SvPADTMP fix; related to RT142468
362
363 0.64 2022-04-02
364 [CHANGES]
365 * Improvements to `:experimental` import tag (RT141801):
366 + Support multiple experiments at once
367 + Make sure to still enable the default keywords
368 * Much better integration with `Devel::MAT::Dumper`:
369 + Export complete C-level structures and magic VTBL root
370 * Adjusted wording of "MOP API is experimental" so it doesn't refer
371 to a package that doesn't actually exist (RT141801)
372
373 0.63 2022-03-07
374 [CHANGES]
375 * Deleted long-deprecated Object::Pad->begin_class
376 * No longer declare the entire module as "experimental"
377 * Add experimental warnings to still-experimental features; recognise
378 `:experimental` import tags to silence them
379
380 [BUGFIXES]
381 * Ensure that generated accessors work correctly regardless of the
382 prevailing package when they were generated (RT141599)
383 * Ensure that classes and accessors can be generated entirely outside
384 of a BEGIN block (RT141677)
385
386 0.62 2022-03-01
387 [CHANGES]
388 * Add "common" methods:
389 + Implement `:common` attribute for methods
390 + Take 'common' argument to `$metaclass->add_method`
391 + Added `$metamethod->is_common` accessor
392 * Don't require a terminating semicolon after `has $field { EXPR }`
393
394 [BUGFIXES]
395 * Better handling of role method embeddings that include lexical
396 captures (RT141483)
397
398 0.61 2022-02-16
399 [CHANGES]
400 * Added Object::Pad::MOP::Class->create_{class,role}
401 * Added $metaclass->seal (RT141294)
402 * Added $metaclass->add_required_method and ->required_method_names
403 (RT141314)
404 * Accept bodyless `method NAME;` declarations to declare a required
405 role method
406
407 [BUGFIXES]
408 * Assert when compclassmeta->name doesn't match PL_curstname (RT141293)
409
410 0.60 2022-02-01
411 [CHANGES]
412 * The Great Slot/Field Rename:
413 + "slot" is now called "field"; all perl-visible and XS API has
414 been renamed. Various back-compatibility redirections exist for
415 most of the parts used by other distributions.
416 * Print a deprecation warning on the legacy 'implements' and
417 'extends' keywords
418 * No longer supports the hooks API from pre-v57
419 * Perform unit testing using Data::Dumper instead of Data::Dump to
420 reduce non-core test_requires dependencies
421
422 0.59 2021-12-15
423 [CHANGES]
424 * Support lexical methods, stored in lexical variables
425
426 [BUGFIXES]
427 * Check :strict(params) even without any :param slots or ADJUSTPARAM
428 blocks (RT140314)
429 * Docs updates to improve searchability (RT140141)
430 * Don't fiddle with PL_curcop on non-DEBUGGING builds to avoid
431 disturbing caller() output (RT139408)
432
433 0.58 2021-11-25
434 [CHANGES]
435 * Trim whitespace within :attribute values (RT140109)
436
437 [BUGFIXES]
438 * Early seal on outer class when deriving an inner subclass of it
439 * Store the real slotix in fasthook cache, not its index within the
440 direct_slots AV
441
442 0.57 2021-11-18
443 [CHANGES]
444 * Defined new ABI version for class/slot hooks
445 + Adds `funcdata` at registration and callback time
446 + Adds MOP accessor functions for slotmeta default SV
447 * Added :isa() and :does() class attributes; encourage those rather
448 than the older keyword style
449 * Added more MOP methods:
450 + $classmeta->direct_methods, ->get_direct_method
451 + $classmeta->all_methods, ->get_method
452 + $slotmeta->has_attribute, ->get_attribute_value
453 * Added Object::Pad::MOP::SlotAttr, allowing pure-perl slot
454 attributes that provide simple metadata storage
455
456 0.56 2021-10-22
457 [CHANGES]
458 * Support roles inheriting from (possibly-multiple) other roles
459 (RT139772)
460 * Recognise `accessor` argument to $classmeta->add_slot
461 * Add some more MOP methods:
462 + $classmeta->direct_roles
463 + $classmeta->all_roles
464 + $slotmeta->sigil
465
466 [BUGFIXES]
467 * Fix an uninitialised memory warning from valgrind to do with class
468 creation
469 * Quiet the compiler warnings about hv_fetch's key argument maybe
470 being NULL
471
472 Development time for this release was sponsored by Perl-Verein Schweiz
473
474 0.55 2021-10-11
475 [CHANGES]
476 * Support :reader and :writer on array and hash slots (RT139647)
477
478 [BUGFIXES]
479 * Complain on attempt to invoke constructor of a class that is not
480 yet complete (RT139664)
481 * Ensure that psotslots and construct slothooks still run for
482 superclasses and applied roles (RT139665)
483
484 Development time for this release was sponsored by Deriv
485
486 0.54 2021-10-07
487 [CHANGES]
488 * Support slot initialiser blocks; don't invoke blocks for values
489 passed by :param
490 * Support slot default values on non-scalars
491
492 Development time for this release was sponsored by Deriv
493
494 0.53 2021-09-29
495 [CHANGES]
496 * Support null-or-unary reader/writer accessors, called simply
497 `:accessor`
498
499 [BUGFIXES]
500 * Avoid some C99'isms which upset Windows compilers
501 * Remember to register pp_weaken() as a custom op
502 * Account for the newer OP_ARGCHECK aux structure of perl 5.31.5
503 * Set correct XPK_LEXVARNAME() type (related to RT139444)
504
505 0.52 2021-08-25
506 [BUGFIXES]
507 * Remember to actually enable `use warnings` (RT139027)
508 * Permit slotmeta value lookup on roles applied to instances
509 (RT138927)
510 * Ensure `ADJUSTPARAMS` on superclass still works on subclasses that
511 don't add an `ADJUSTPARAMS` themselves
512
513 Development time for this release was sponsored by Perl-Verein Schweiz
514
515 0.51 2021-08-10
516 [CHANGES]
517 * Added `ADJUSTPARAMS` blocks
518 * Allow `apply` hook functions to modify the hookdata value that gets
519 stored by the hook
520 * Store method name data in accessor generator hooks, so other
521 modules can reliably find it
522 * Clarify in SYNOPSIS that the example requires perl 5.26 because of
523 signatures; also provide another copy that doesn't (RT138578)
524
525 [BUGFIXES]
526 * Don't segfault on colliding :param names (RT138633)
527 * Don't ship the authoring test xt/99exported-symbols.t (RT138634)
528
529 Development time for this release was sponsored by Perl-Verein Schweiz
530
531 0.50 2021-08-08
532 [CHANGES]
533 * Provide Object::Pad::ExtensionBuilder to assist 3rd party extension
534 module building
535 * Generally tidy up the exposed `object_pad.h` file to remove some
536 definitions we don't want to make public
537 * Add ABI version constants and fields in exposed hook function
538 structures for (hopefully) better forward compatibility
539 * Add the concept of class hooks, analogous to slot hooks
540
541 Development time for this release was sponsored by Deriv
542
543 0.49 2021-08-06
544 [CHANGES]
545 * Provide $XSAPI_VERSION to allow non-API-breaking changes to be made
546 without disturbing compiled 3rd party modules
547 * Better searching for Pad.so in t/99exported-symbols.t
548 (thanks [email protected]) (RT138320)
549 * Gain a (small) runtime performance boost by remembering to set
550 PERL_NO_GET_CONTEXT
551
552 [BUGFIXES]
553 * Ignore some internal linker symbols in t/99exported-symbols.t
554 (RT138315)
555 * Remember to bump the version requirement of XS::Parse::Keyword in
556 the XS source (RT138318)
557 * Make slots visible to string-eval(), PadWalker, perl -d, etc..
558 (RT138399)
559
560 Development time for this release was partly sponsored by
561 Perl-Verein Schweiz
562
563 0.48 2021-08-02
564 [CHANGES]
565 * Added features to slothooks:
566 + New hooks `.seal_slot` and `.post_construct`
567 + `.post_initslot` now runs earlier before `:param`
568 + Added a MOP function to query slot attributes
569 + Set a minimal pad during construction-time slot hooks
570 * Ensure that `:param` logic in constructor invokes setmagic
571
572 [BUGFIXES]
573 * Fixed many classes of UTF-8 bug on class/slot/method names
574 (RT138073)
575 * Fixed segfault caused by runtime generation of roles (RT137952)
576
577 Development time for this release was sponsored by Deriv and
578 Perl-Verein Schweiz
579
580 0.47 2021-07-29
581 [CHANGES]
582 * Large internal rewrites
583 + Split code among several smaller files instead of one giant
584 lib/Object/Pad.xs
585 + Rewrite the way that slot attributes work; allow an
586 externally-visible plugin-type system of hooks
587 * Removed `->param_name` and `->has_param` MOP::Slot accessors
588
589 Development time for this release was sponsored by Perl-Verein Schweiz
590
591 0.46 2021-07-21
592 [CHANGES]
593 * Accept reader, writer, mutator and weak as `->add_slot` parameters
594 * Document the `O:P:MOP::Class->begin_class` method
595 * Add `O:P:MOP::Class->begin_role`
596 * Enable `-DDEBUGGING` if building via debugperl
597
598 Development time for this release was sponsored by Deriv
599
600 0.45 2021-07-17
601 [BUGFIXES]
602 * Don't give role embedding information a pad name or
603 Future::AsyncAwait will break it (RT137649)
604 * Make sure that `parammeta->is_weak` is initialised even for params
605 applied via roles (RT137751)
606
607 0.44 2021-07-15
608 [CHANGES]
609 * Added `:weak` slot attribute
610 * Adjusted some documentation headings for better generation of HTML
611 anchors on metacpan.org
612
613 Development time for this release was sponsored by Oetiker+Partner AG
614
615 0.43 2021-07-03
616 [CHANGES]
617 * Initial implementation of `ADJUST` blocks, without params
618 * Better docs about ordering of stages of constructor
619 * Initial attempt at (temporary) `:struct(params)` class attribute
620 * Add O:P:MOP::Class and ::Slot support for slot params
621
622 Development time for this release was sponsored by Oetiker+Partner AG
623
624 0.42 2021-07-01
625 [CHANGES]
626 * Expose `$slotmeta->has_param` API
627 * Clarify in docs that `:param` happens before `BUILD`
628 * Remove the word "very" from "very experimental" in introduction
629 docs paragraph
630 * Add `$classmeta->slots`
631
632 [BUGFIXES]
633 * Make sure to embed params from roles correctly (RT136869)
634 * Use `XS_INTERNAL()` rather than `static XS()` to (maybe?) keep
635 cygwin happy
636
637 Development time for this release was sponsored by Oetiker+Partner AG
638
639 0.41 2021-06-21
640 [CHANGES]
641 * Recognise `:param` on slots, assign automatically from constructor,
642 check for required parameters
643 * Accept `isa` as a synonym for `extends`, and `does` as a synonym
644 for `implements`
645 * No longer allow `method BUILD`
646
647 [BUGFIXES]
648 * Complain about a lack of NAME for `class` (related to RT136798)
649
650 Development time for this release was sponsored by Oetiker+Partner AG
651
652 0.40 2021-06-02
653 [CHANGES]
654 * Updated for XS::Parse::Keyword v0.06
655 * Silence the -Wunused-variable warning about PL_savetype_name
656 * Yield PL_sv_yes from `class` statements so as to keep `require`
657 happy (RT136701)
658
659 0.39 2021-05-24
660 [CHANGES]
661 * Update parsing logic to use XS::Parse::Keyword
662
663 0.38 2021-05-14
664 [CHANGES]
665 * Added Object::Pad::MOP::Class->for_class and ->for_caller
666 constructors
667 * Provide a generated ->DOES method on each class to account for
668 applied roles (RT136462)
669
670 [BUGFIXES]
671 * Make sure that generated accessors are recorded in the metaclass as
672 real methods, ensuring role application includes them (RT136507)
673
674 0.37 2021-04-01
675 [BUGFIXES]
676 * Don't get confused by sub signature parameters of the same name as
677 slot variables (RT134456)
678 * Don't crash if extends/implements package names are missing or
679 malformed (RT134827)
680 * Reject requests to make accessors with invalid identifier names
681 (RT134795)
682
683 0.36 2021-02-19
684 [CHANGES]
685 * Added $classmeta->compose_role() (RT134261)
686 * Docs updates
687 + Point out that slot variables can also be exposed via :reader etc
688 + Reƶrdering for better reading
689 * Always add accessor method name to "Too (many/few) arguments"
690 messages even on older perls
691
692 [BUGFIXES]
693 * Fix unit tests for change of argcheck message format in perl 5.33.6
694 (RT134074)
695
696 0.35 2020-12-28
697 [CHANGES]
698 * Permit roles to request their methods still be directly invokable,
699 to provide back/forward compatibility during code migration
700
701 [BUGFIXES]
702 * More sanity checking around `extends` and `implements` keywords
703 * Better complaint about non-invokable methods directly from roles
704 * Workaround for string buffer swipe of stack temporaries in
705 O:P::MOP::Class->add_method()
706
707 0.34 2020-11-04
708 [CHANGES]
709 * Reword the "experimental warning" at the top of the docs
710
711 [BUGFIXES]
712 * Use named enum for repr type (thanks ilmari) (RT133354)
713 * Use named structs so pahole can see them (thanks ilmari) (RT133355)
714 * Make sure to set the CvGV of embedded CVs of methods imported from
715 roles
716 * Fixed a crash case on Perl 5.18 and 5.20 involving the
717 PadnameOUTER() flag when fixing up PARENT_PAD_INDEX() (RT132814)
718
719 0.33 2020-09-16
720 [CHANGES]
721 * Roles can now have data slots
722 * `use v5.14` in all files
723
724 [BUGFIXES]
725 * pp_sv() needs to EXTEND() before PUSH()
726 * Avoid SEGV if ->begin_class is called without PL_parser set
727 (RT133258)
728 * Defer sealing of derived classes until their base class is sealed
729 (RT133190)
730
731 0.32 2020-08-19
732 [CHANGES]
733 * Initial attempt at roles, which can compose new methods into
734 classes. No support yet for roles with data slots
735 * Support compiletime declaration of `requires` methods
736
737 0.31 2020-06-30
738 [CHANGES]
739 * Don't emit a named method for BUILD blocks
740 + Enables subclassing of Moo classes
741 * Begin documenting the (double-experimental) Object::Pad::MOP API
742
743 [BUGFIXES]
744 * Parser fix for `class NAME VERSION extends ...` without a linefeed
745 (RT132903)
746 * Placate some compiler warnings of uninitialised values
747 * Find a different way to trigger class sealing which doesn't depend
748 on `free` magic of hinthash values, in order to avoid core perl bug
749 https://github.com/Perl/perl5/issues/17903
750 * Various small fixes to keep -DDEBUGGING perl happy
751
752 0.30 2020-06-20
753 [CHANGES]
754 * Make generated writer methods return $self, for convenient chaining
755 * Apply argument checking to generated accessor methods
756 * Improved performance of constructor, by storing BUILD blocks
757 directly in the class metadata, avoiding runtime method lookup
758 * Updates for XS::Parse::Sublike 0.10
759
760 0.29 2020-06-16
761 [CHANGES]
762 * Accept :override attribute on methods
763 * Accept runtime expressions as `has $slot = DEFAULT`
764 * Added Devel::MAT::Dumper::Helper support
765
766 [BUGFIXES]
767 * Fix various compiler warnings
768
769 0.28 2020-06-14
770 [BUGFIXES]
771 * Declare correct version of XS::Parse::Sublike in configure_requires
772 as we need it at Build.PL time
773 * Fix printf formats for SLOTOFFSET arguments
774 * Fix github URL in docs
775
776 0.27 2020-06-13
777 [CHANGES]
778 * Support :reader :writer :mutator attributes on slot variables, to
779 automatically generate accessor methods for them
780 * Accept `BUILD { ... }` without the `method` keyword. Suggest this
781 as usual style. Discourage the `method` form.
782 * Updated advice to module authors on how to declare package/VERSION
783 sufficient to keep toolchain modules happy
784
785 0.26 2020-04-27
786 [CHANGES]
787 * Sanity-checking of ->add_slot names
788 * Permit "anonymous" slots with sigils but no names; accessed only
789 via $slotmeta->value
790 * Warn when $self lexical is shadowed (partly fixes RT132428)
791
792 [BUGFIXES]
793 * Ensure to run GETMAGIC on ->add_slot names
794 * Removed extranous and undeclared `use Devel::MAT::Dumper` from unit
795 tests
796
797 0.25 2020-04-24
798 [CHANGES]
799 * Further expanded the (undocumented) MOP API
800 + Added beginnings of O:P:MOP::Class, O:P:MOP::Slot sufficient to
801 create classes and add slots and methods to them
802
803 [BUGFIXES]
804 * Ensure that anonymous methods can perform lexical captures from
805 outside scopes (RT132178)
806 * Ensure that subclasses without BUILD methods don't double invoke
807 that of their superclass
808 * Ensure a method's optree begins with OP_NEXTSTATE as debug tools
809 may rely on this (RT132413)
810 * Don't rely on Test::MemoryGrowth at test time, so tests can still
811 pass on non-Linux
812
813 0.24 (bad MANIFEST)
814
815 0.23 2020-04-21
816 [CHANGES]
817 * Add another new :repr type of autoselect, which chooses the most
818 appropriate type for the situation
819
820 0.22 2020-04-17
821 [CHANGES]
822 * Allow classes to request their representation type using new
823 class attribute :repr - choices are native(default), HASH, magic
824
825 0.21 2020-04-15
826 [CHANGES]
827 * Added Object::Pad->begin_class() (undocumented)
828 (mostly fixes RT132337 and RT132338)
829 * Improved performance of OP_SLOTPAD
830 * Handle UTF-8 package names more correctly
831
832 [BUGFIXES]
833 * Fix memory leaks related to OP_METHSTART (RT132332)
834
835 0.20 2020-04-10
836 [CHANGES]
837 * Update suggested style for methods with signatures to put
838 whitespace before open paren
839 * Use core's `feature "indirect"` in preference to indirect.pm where
840 available (perl 5.31.9 onwards)
841
842 [BUGFIXES]
843 * Fix for segfault when compiling inner anon methods inside other
844 methods (RT132321)
845
846 0.19 2020-04-04
847 [CHANGES]
848 * More sanity checking of HASH-based foreign superclass constructor
849 * More unit testing of reliable destruction of constructor and
850 BUILDARGS arguments
851
852 [BUGFIXES]
853 * Allow classic Perl superclass constructors to invoke methods on
854 instances (RT132263)
855 * Fix SP pointer discipline during method calls in generated
856 constructor
857
858 0.18 2020-03-30
859 [CHANGES]
860 * Implement the BUILDARGS part of constructor protocol
861 * Apply the :method attribute to all method subs
862
863 0.17 2020-03-27
864 [CHANGES]
865 * Add some style suggestions for code authors using the module
866 * Updated for XS::Parse::Sublike 0.06 API
867
868 [BUGFIXES]
869 * Create a new slot pad for every method instead of reusing one;
870 avoids some refcounting issues that cause segfaults (RT132249)
871
872 0.16 2020-03-26
873 [CHANGES]
874 * Always generate the slots AV even with no slots because otherwise
875 METHSTART gets upset about no-slot subclasses
876 * Capture the `async method` unit tests from Future-AsyncAwait
877
878 [BUGFIXES]
879 * Ensure that object refs or slot values don't hang around in method
880 lexicals after they've returned (RT132228)
881 * Use OP_STUB to ensure no-slot subclasses don't crash OP_PUSH on
882 perls 5.18 to 5.22 (thanks ilmari)
883
884 0.15 2020-03-19
885 [CHANGES]
886 * Use XS::Parse::Sublike 0.04
887 + Provides bugfixes for parameters in sub signatures with defaults
888
889 [BUGFIXES]
890 * Handle class-scoped regular lexicals and outer captures
891
892 0.14 2020-03-17
893 [CHANGES]
894 * Use XS::Parse::Sublike 0.02's `register_xs_parse_sublike()` ability
895
896 0.13 2020-03-15
897 [CHANGES]
898 * Use XS::Parse::Sublike for the bulk of the `method` parsing work
899
900 [BUGFIXES]
901 * Inline the code for Perl_package_version() because it isn't
902 exported API so not actually visible on non-ELF platforms
903
904 0.12 2020-03-10
905 [CHANGES]
906 * Minor adjustments to order of operations in method keyword parsing
907 to closer match core's parser
908
909 [BUGFIXES]
910 * Rename t/80dynamically+Object::Pad.t to use a hyphen because colons
911 confuse MSWin32 (RT132087)
912
913 0.11 2020-03-07
914 [CHANGES]
915 * More efficient method enter on perl 5.22 onwards by detecting which
916 slots are being used per method and only set those ones up
917
918 [BUGFIXES]
919 * Fix some C99isms in XS code (RT131417)
920 * Avoid a C++-style comment in hax/lexer-additions.c.inc
921
922 0.10 2019-11-20
923 [BUGFIXES]
924 * Back-compat fixes for perl 5.16, 5.20
925
926 0.09 2019-11-20
927 [CHANGES]
928 * Accept optional version number for `class` declaration and
929 `extends` base class
930 * Provide a default `BUILDALL` method which invokes all the available
931 `BUILD` methods of component packages
932 * Unit-test that Syntax::Keyword::Dynamically works correctly with
933 object slots and document the fact that `local` does not
934
935 [BUGFIXES]
936 * Generate the constructor as an XSUB so we can find the superclass
937 for derived subclasses better and avoid an infinite recusion loop
938 on double-subclassing.
939
940 0.08 2019-11-10
941 [CHANGES]
942 * Accept `class Name;` to introduce a toplevel class scope
943 * Attempt to `require` the relevant module for `extends` if it
944 doesn't appear to be loaded
945
946 0.07 2019-10-25
947 [CHANGES]
948 * Allow subclassing of non-Object::Pad base classes, provided they
949 are HASH-based
950 [BUGFIXES]
951 * Correct handling of UTF-8 package and slot names (thanks ilmari)
952
953 0.06 2019-10-23
954 [CHANGES]
955 * First attempt at `has $slot = DEFAULT` expressions. Only accepts
956 compiletime constants and only on scalar slots
957
958 0.05 2019-10-20
959 [CHANGES]
960 * Implement single-inheriance subclassing
961
962 0.04 2019-10-19
963 [CHANGES]
964 * Croak on attempts to invoke methods on non-instances, non-derived
965 classes, etc...
966 * Support perls back to 5.16 by various trickery
967 * Store array and hash slot variables via RV so the instances are
968 well-behaved as perl data structures
969
970 0.03 2019-10-18
971 [CHANGES]
972 * Implement sub signatures
973 * Apply automatic pragmata - strict, warnings, -indirect
974
975 0.02 2019-10-17
976 [CHANGES]
977 * `method name :lvalue` and (maybe) other attributes
978 * Support perls back to 5.22 due to wrap_keyword_plugin hax
979
980 0.01 2019-10-17
981 First version, released on an unsuspecting world.