Package : perl-MooX-Struct > RPM : perl-MooX-Struct-0.17.0-2.mga7.src.rpm
Basic items
Name | perl-MooX-Struct |
Version | 0.17.0 |
Release | 2.mga7 |
URL | http://search.cpan.org/dist/MooX-Struct |
Group | Development/Perl |
Summary | Make simple lightweight record-like structures that make sounds like cows |
Size | 36KB |
Arch | noarch |
License | GPL+ or Artistic |
Description
MooX::Struct allows you to create cheap struct-like classes for your data
using the Moo manpage.
While similar in spirit to the MooseX::Struct manpage and the Class::Struct
manpage, MooX::Struct has a somewhat different usage pattern. Rather than
providing you with a 'struct' keyword which can be used to define structs,
you define all the structs as part of the 'use' statement. This means they
happen at compile time.
A struct is just an "anonymous" Moo class. MooX::Struct creates this class
for you, and installs a lexical alias for it in your namespace. Thus your
module can create a "Point3D" struct, and some other module can too, and
they won't interfere with each other. All struct classes inherit from
MooX::Struct.
using the Moo manpage.
While similar in spirit to the MooseX::Struct manpage and the Class::Struct
manpage, MooX::Struct has a somewhat different usage pattern. Rather than
providing you with a 'struct' keyword which can be used to define structs,
you define all the structs as part of the 'use' statement. This means they
happen at compile time.
A struct is just an "anonymous" Moo class. MooX::Struct creates this class
for you, and installs a lexical alias for it in your namespace. Thus your
module can create a "Point3D" struct, and some other module can too, and
they won't interfere with each other. All struct classes inherit from
MooX::Struct.
Media information
Distribution release | Mageia 7 |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2018-09-20 12:25:00 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |