Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reindexes DESTROY and change of format
  • Loading branch information
JJ committed Aug 16, 2018
1 parent 468a61d commit 612f995
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions doc/Type/Metamodel/Finalization.pod6
Expand Up @@ -4,24 +4,25 @@
=SUBTITLE Metaobject supporting object finalization
X<DESTROY>
X<|DESTROY metamodel>
role Metamodel::Finalization { ... }
This role takes care that C<DESTROY> submethods are called (if they exist)
when an object is garbage-collected.
This role takes care that C<DESTROY> submethods are called (if they
exist) when an object is garbage-collected.
=head1 Methods
=head2 method setup_finalization
method setup_finalization(Metamodel::Finalization:D: $obj)
Collects the C<DESTROY> submethods from this class and all its superclasses,
and marks the class as needing action on garbage collection.
Collects the C<DESTROY> submethods from this class and all its
superclasses, and marks the class as needing action on garbage
collection.
A metamodel for a kind that implements finalization semantics must call this method
at type composition time.
A metamodel for a kind that implements finalization semantics must call
this method at type composition time.
=head2 method destroyers
Expand Down

0 comments on commit 612f995

Please sign in to comment.