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 Кб153 Кб [список файлов]