Name : perl-Perl6-Classes
| |
Version : 0.22
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.7.1
| Date : 2023-01-27 17:47:52
|
Group : Development/Libraries/Perl
| Source RPM : perl-Perl6-Classes-0.22-lp154.7.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : First class classes in Perl 5
|
Description :
\'Perl6::Classes\' allows the creation of (somewhat) Perl 6-style classes in Perl 5. The following features are currently supported:
* * \'sub\'s, \'method\'s, and \'submethod\'s
And their respective scoping rules.
* * Attributes
Which are available through the \'has\' keyword, and look like \'$.this\'.
* * Inheritance
Both single and multiple inheritance are available through the \'is\' keyword.
* * Signatures
Signatures on \'method\'s, \'sub\'s, and \'submethod\'s are supported, but just the Perl 5 kind.
* * Data hiding
Using the \'public\', \'protected\', and \'private\' traits, you can enforce (run-time) data hiding. This is not supported on attributes, which are always \'private\'.
* * Anonymous classes
That respect closures. You can now nest them inside methods of other classes, even other anonymous ones!
The \'Perl6::Classes\' module augments Perl\'s syntax with a new declarator: \'class\'. It offers the advantage over Perl\'s standard OO mechanism that it is conceptually easier to see (especially for those from a C++/Java background). It offers the disadvantage, of course, of being less versatile.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-P/15.4/noarch |