Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> perl >> libclass-trait-perl
etiona  ] [  nabia  ]
[ 源代码: libclass-trait-perl  ]

软件包: libclass-trait-perl (0.31-4)

Implementation of Traits in Perl

Traits are a simple composition mechanism for structuring object-oriented programs. A Trait is essentially a parameterized set of methods, which serves as a building block for classes and is the primitive unit of code reuse. Unlike mixins and multiple inheritance, Traits do not use inheritance as the composition operator. Instead, Trait composition is based on a set of operators that are complementary to single inheritance and result in better composition properties.

Traits are a core part of Perl 6 (called Roles there), and Class::Trait implements traits for Perl 5.

其他与 libclass-trait-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libclass-accessor-perl
    Perl module that automatically generates accessors
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下载 libclass-trait-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 50.1 kB153 kB [文件列表]