Perl6::Classes 0.22
Sponsored Links
Perl6::Classes 0.22 Ranking & Summary
File size:
0.007 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
869
Date added:
2007-06-08
Publisher:
Luke Palmer
Perl6::Classes 0.22 description
Perl6::Classes project contains first class classes in Perl 5.
SYNOPSIS
use Perl6::Classes;
class Composer {
submethod BUILD { print "Giving birth to a new composern" }
method compose { print "Writing some music...n" }
}
class ClassicalComposer is Composer {
method compose { print "Writing some muzak...n" }
}
class ModernComposer is Composer {
submethod BUILD($) { $.length = shift }
method compose() { print((map { int rand 10 } 1..$.length), "n") }
has $.length;
}
my $beethoven = new ClassicalComposer;
my $barber = new ModernComposer 4;
my $mahler = ModernComposer->new(400);
$beethoven->compose; # Writing some muzak...
$barber->compose # 7214
compose $mahler; # 89275869347968374698756....
Perl6::Classes allows the creation of (somewhat) Perl 6-style classes in Perl 5. The following features are currently supported:
subs, methods, and submethods
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 methods, subs, and submethods 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 Perls syntax with a new declarator: class. It offers the advantage over Perls 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.
SYNOPSIS
use Perl6::Classes;
class Composer {
submethod BUILD { print "Giving birth to a new composern" }
method compose { print "Writing some music...n" }
}
class ClassicalComposer is Composer {
method compose { print "Writing some muzak...n" }
}
class ModernComposer is Composer {
submethod BUILD($) { $.length = shift }
method compose() { print((map { int rand 10 } 1..$.length), "n") }
has $.length;
}
my $beethoven = new ClassicalComposer;
my $barber = new ModernComposer 4;
my $mahler = ModernComposer->new(400);
$beethoven->compose; # Writing some muzak...
$barber->compose # 7214
compose $mahler; # 89275869347968374698756....
Perl6::Classes allows the creation of (somewhat) Perl 6-style classes in Perl 5. The following features are currently supported:
subs, methods, and submethods
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 methods, subs, and submethods 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 Perls syntax with a new declarator: class. It offers the advantage over Perls 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.
Perl6::Classes 0.22 Screenshot
Perl6::Classes 0.22 Keywords
Perl 5
Classes 0.22
ModernComposer
first class
class
Perl
classes
5
compose
new
Perl6::Classes
Perl6Classes
Perl6::Classes 0.22
Libraries
Programming
Bookmark Perl6::Classes 0.22
Perl6::Classes 0.22 Copyright
WareSeeker periodically updates pricing and software information of Perl6::Classes 0.22 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Perl6::Classes 0.22 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
online classes
first class postage
how much is a first class stamp
Abstract class
class rings
perl 5.8
classic industries
perl 5.6
classified ads
mac cosmetics master classes
classmates
first class credit union
balfour class rings
classic auto trader
classes online
perl 5.0
classical guitar
how to get a first class upgrade
Related Software
classesfaq is a Perl module with frequently asked questions about the Perl classes pragma. Free Download
perlrecharclass package contains Perl regular expression character classes. Free Download
Class::CGI is a Perl module to fetch objects from your CGI object. Free Download
Class::Meta is a Perl class automation, introspection, and data validation. Free Download
Class::Std is a Perl module to support for creating standard "inside-out" classes. Free Download
Class::Bits is a Perl module with class wrappers around bit vectors. Free Download
Class::Trait is a Perl implementation of Traits in Perl. Free Download
Class::Agreement is a Perl module that add contracts to your Perl classes easily. Free Download
Latest Software
Popular Software
Favourite Software