Destroyable
Version 1.x
Destroyable
forces all methods called destroy()
to be chained in
the “before” fashion (opposite to constructors). It is meant to provide
a destruction foundation, so objects can be destroyed explicitly in
a unified fashion.
It can be included with following commands:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Description
Here is its definition:
1 2 3 4 |
|
As you can see it contains no code! The only important part is a chaining directive.
When you mix it in to your “classes” it will weave all found destroy()
methods
properly.
Read a background on destruction in Destructors.
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|