pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-Role-Tiny

Module Name:    pkgsrc
Committed By:   sno
Date:           Wed Jul 18 07:54:13 UTC 2012

Added Files:
        pkgsrc/devel/p5-Role-Tiny: DESCR Makefile distinfo

Log Message:
Adding new package for CPAN module Role::Tiny version 1.001004 into
devel/p5-Role-Tiny as requirement for upcoming update for devel/p5-Moo.

Role::Tiny is a minimalist role composition tool.


Role composition can be thought of as much more clever and meaningful
multiple inheritance. The basics of this implementation of roles is:

    * If a method is already defined on a class, that method will not be
      composed in from the role.
    * If a method that the role "requires" to be implemented is not
      implemented, role application will fail loudly.

Unlike Class::C3, where the last class inherited from "wins," role
composition is the other way around, where the class wins. If multiple
roles are applied in a single call (single with statement), then if any
of their provided methods clash, an exception is raised unless the class
provides a method since this conflict indicates a potential problem.

To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-Role-Tiny/DESCR \
    pkgsrc/devel/p5-Role-Tiny/Makefile pkgsrc/devel/p5-Role-Tiny/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index