This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update meta information for release.
Version 0.08. We've moved to Github.
- Loading branch information
Showing
7 changed files
with
114 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
This software is copyright (c) 2010 by Michael G Schwern E<lt>[email protected]<gt>. | ||
This software is copyright (c) 2015 by Michael G Schwern E<lt>[email protected]<gt>. | ||
|
||
This is free software; you can redistribute it and/or modify it under | ||
the same terms as the Perl 5 programming language system itself. | ||
|
@@ -12,21 +12,22 @@ b) the "Artistic License" | |
|
||
--- The GNU General Public License, Version 1, February 1989 --- | ||
|
||
This software is Copyright (c) 2010 by Michael G Schwern E<lt>[email protected]<gt>. | ||
This software is Copyright (c) 2015 by Michael G Schwern E<lt>[email protected]<gt>. | ||
|
||
This is free software, licensed under: | ||
|
||
The GNU General Public License, Version 1, February 1989 | ||
|
||
GNU GENERAL PUBLIC LICENSE | ||
Version 1, February 1989 | ||
GNU GENERAL PUBLIC LICENSE | ||
Version 1, February 1989 | ||
|
||
Copyright (C) 1989 Free Software Foundation, Inc. | ||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA | ||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
Everyone is permitted to copy and distribute verbatim copies | ||
of this license document, but changing it is not allowed. | ||
|
||
Preamble | ||
Preamble | ||
|
||
The license agreements of most software companies try to keep users | ||
at the mercy of those companies. By contrast, our General Public | ||
|
@@ -67,7 +68,7 @@ authors' reputations. | |
The precise terms and conditions for copying, distribution and | ||
modification follow. | ||
|
||
GNU GENERAL PUBLIC LICENSE | ||
GNU GENERAL PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
||
0. This License Agreement applies to any program or other work which | ||
|
@@ -185,7 +186,7 @@ make exceptions for this. Our decision will be guided by the two goals | |
of preserving the free status of all derivatives of our free software and | ||
of promoting the sharing and reuse of software generally. | ||
|
||
NO WARRANTY | ||
NO WARRANTY | ||
|
||
9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | ||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | ||
|
@@ -207,9 +208,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGES. | ||
|
||
END OF TERMS AND CONDITIONS | ||
END OF TERMS AND CONDITIONS | ||
|
||
Appendix: How to Apply These Terms to Your New Programs | ||
Appendix: How to Apply These Terms to Your New Programs | ||
|
||
If you develop a new program, and you want it to be of the greatest | ||
possible use to humanity, the best way to achieve this is to make it | ||
|
@@ -235,8 +236,9 @@ the exclusion of warranty; and each file should have at least the | |
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software Foundation, | ||
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA | ||
|
||
|
||
Also add information on how to contact you by electronic and paper mail. | ||
|
||
|
@@ -270,7 +272,7 @@ That's all there is to it! | |
|
||
--- The Artistic License 1.0 --- | ||
|
||
This software is Copyright (c) 2010 by Michael G Schwern E<lt>[email protected]<gt>. | ||
This software is Copyright (c) 2015 by Michael G Schwern E<lt>[email protected]<gt>. | ||
|
||
This is free software, licensed under: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ t/universal.t | |
README | ||
LICENSE | ||
META.yml | ||
META.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"abstract" : "Mix-in inheritance, an alternative to multiple inheritance", | ||
"author" : [ | ||
"Michael G Schwern E<lt>[email protected]<gt>" | ||
], | ||
"dynamic_config" : 1, | ||
"generated_by" : "Module::Build version 0.4214", | ||
"keywords" : [ | ||
"mixin", | ||
"inheritance", | ||
"devel" | ||
], | ||
"license" : [ | ||
"perl_5" | ||
], | ||
"meta-spec" : { | ||
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", | ||
"version" : "2" | ||
}, | ||
"name" : "mixin", | ||
"prereqs" : { | ||
"build" : { | ||
"requires" : { | ||
"Test::More" : "0.4", | ||
"Test::NoWarnings" : "0" | ||
} | ||
}, | ||
"configure" : { | ||
"requires" : { | ||
"Module::Build" : "0.36" | ||
} | ||
}, | ||
"runtime" : { | ||
"requires" : { | ||
"base" : "0" | ||
} | ||
} | ||
}, | ||
"provides" : { | ||
"mixin" : { | ||
"file" : "lib/mixin.pm", | ||
"version" : "0.08" | ||
}, | ||
"mixin::with" : { | ||
"file" : "lib/mixin/with.pm", | ||
"version" : "0.07" | ||
} | ||
}, | ||
"release_status" : "stable", | ||
"resources" : { | ||
"bugtracker" : { | ||
"web" : "https://github.com/evalEmpire/mixin/issues" | ||
}, | ||
"homepage" : "https://github.com/evalEmpire/mixin", | ||
"license" : [ | ||
"http://dev.perl.org/licenses/" | ||
], | ||
"repository" : { | ||
"url" : "https://github.com/evalEmpire/mixin" | ||
} | ||
}, | ||
"version" : "0.08", | ||
"x_serialization_backend" : "JSON::PP version 2.27203" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,32 +3,34 @@ abstract: 'Mix-in inheritance, an alternative to multiple inheritance' | |
author: | ||
- 'Michael G Schwern E<lt>[email protected]<gt>' | ||
build_requires: | ||
Test::More: 0.4 | ||
Test::NoWarnings: 0 | ||
Test::More: '0.4' | ||
Test::NoWarnings: '0' | ||
configure_requires: | ||
Module::Build: 0.36 | ||
generated_by: 'Module::Build version 0.3601' | ||
Module::Build: '0.36' | ||
dynamic_config: 1 | ||
generated_by: 'Module::Build version 0.4214, CPAN::Meta::Converter version 2.150005' | ||
keywords: | ||
- mixin | ||
- inheritance | ||
- devel | ||
license: perl | ||
meta-spec: | ||
url: http://module-build.sourceforge.net/META-spec-v1.4.html | ||
version: 1.4 | ||
version: '1.4' | ||
name: mixin | ||
provides: | ||
mixin: | ||
file: lib/mixin.pm | ||
version: 0.07 | ||
version: '0.08' | ||
mixin::with: | ||
file: lib/mixin/with.pm | ||
version: 0.07 | ||
version: '0.07' | ||
requires: | ||
base: 0 | ||
base: '0' | ||
resources: | ||
bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=mixin | ||
homepage: http://search.cpan.org/dist/mixin | ||
bugtracker: https://github.com/evalEmpire/mixin/issues | ||
homepage: https://github.com/evalEmpire/mixin | ||
license: http://dev.perl.org/licenses/ | ||
repository: http://github.com/schwern/mixin | ||
version: 0.07 | ||
repository: https://github.com/evalEmpire/mixin | ||
version: '0.08' | ||
x_serialization_backend: 'CPAN::Meta::YAML version 0.012' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ SYNOPSIS | |
$small_retriever->fetch('ball'); # Get your own stinking ball | ||
|
||
DESCRIPTION | ||
NOTE You probably want to look into the similar but superior concept of | ||
traits/roles instead. See "SEE ALSO" for suggested modules. | ||
|
||
Mixin inheritance is an alternative to the usual multiple-inheritance | ||
and solves the problem of knowing which parent will be called. It also | ||
solves a number of tricky problems like diamond inheritence. | ||
|
@@ -56,7 +59,7 @@ DESCRIPTION | |
|
||
Mixins, Inheritance and SUPER | ||
A class which uses a mixin *does not* inherit from it. However, through | ||
some clever trickery, `SUPER' continues to work. Here's an example. | ||
some clever trickery, "SUPER" continues to work. Here's an example. | ||
|
||
{ | ||
package Parent; | ||
|
@@ -86,7 +89,7 @@ DESCRIPTION | |
|
||
print join " ", Child->foo; # Parent Middle Child | ||
|
||
This will print `Parent Middle Child'. You'll note that this is the same | ||
This will print "Parent Middle Child". You'll note that this is the same | ||
result if Child inherited from Middle and Middle from Parent. Its also | ||
the same result if Child multiply inherited from Middle and Parent but | ||
*NOT* if it inherited from Parent then Middle. The advantage of mixins | ||
|
@@ -103,17 +106,18 @@ AUTHOR | |
Michael G Schwern <[email protected]> | ||
|
||
LICENSE | ||
Copyright 2002-2010 by Michael G Schwern | ||
Copyright 2002-2015 by Michael G Schwern | ||
|
||
This library is free software; you can redistribute it and/or modify it | ||
under the same terms as Perl itself. | ||
|
||
http://dev.perl.org/licenses/ | ||
<http://dev.perl.org/licenses/> | ||
|
||
SEE ALSO | ||
Class::Trait - mixin.pm is a gateway drug to traits | ||
|
||
Class::C3 - another band-aid on multiple inheritance | ||
Role::Tiny - A stand alone implementation of traits/roles, like mixins | ||
but better. | ||
|
||
Moose::Role - Moose's implementation of traits/roles. | ||
|
||
mro and Class::C3 make multiple inheritance work more sensibly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ use strict; | |
use warnings; | ||
no strict 'refs'; | ||
use vars qw($VERSION); | ||
$VERSION = '0.07'; | ||
$VERSION = '0.08'; | ||
|
||
|
||
=head1 NAME | ||
|
@@ -207,7 +207,7 @@ Michael G Schwern E<lt>[email protected]<gt> | |
=head1 LICENSE | ||
Copyright 2002-2010 by Michael G Schwern | ||
Copyright 2002-2015 by Michael G Schwern | ||
This library is free software; you can redistribute it and/or modify it | ||
under the same terms as Perl itself. | ||
|