Main > Programming > Libraries >

Class::Declare::Attributes 0.04

Class::Declare::Attributes 0.04

Sponsored Links

Class::Declare::Attributes 0.04 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.021 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 858
Date added: 2007-06-20
Publisher: Ian Brayshaw

Class::Declare::Attributes 0.04 description

Class::Declare::Attributes is a Perl module with Class::Declare method types using Perl attributes.

SYNOPSIS

package My::Class;

use 5.006;
use strict;
use warnings;

use base qw( Class::Declare::Attributes );

# declare the class/instance attributes
__PACKAGE__->declare( ... );

#
# declare class/static/restricted/etc methods of this package
#

sub my_abstract : abstract { ... }
sub my_class : class { ... }
sub my_static : static { ... }
sub my_restricted : restricted { ... }
sub my_public : public { ... }
sub my_private : private { ... }
sub my_protected : protected { ... }

Class::Declare::Attributes extends Class::Declare by adding support for Perl attributes for specifying class method types. This extension was inspired by Damian Conways Attribute::Handlers module, and Tatsuhiko Miyagawas Attribute::Protected module. The original implementation used Attribute::Handlers, but now simply refers to attributes.

The addition of Perl attribute support (not to be confused with object attributes, which are entirely different, and also supported by Class::Declare) greatly simplifies the specification of Class::Declare-derived class and instance methods. This should aid in the porting of existing code (Perl, Java and C++) to a Class::Declare framework, as well as simplify the development of new modules.

With the addition of Perl attributes, Class::Declare methods can now be written as

sub method : public
{
my $self = shift;
...
}
instead of
sub method
{
my $self = __PACKAGE__->public( shift );
...
}

Class::Declare::Attributes 0.04 Screenshot

Advertisements

Class::Declare::Attributes 0.04 Keywords

Bookmark Class::Declare::Attributes 0.04

Hyperlink code:
Link for forum:

Class::Declare::Attributes 0.04 Copyright

WareSeeker periodically updates pricing and software information of Class::Declare::Attributes 0.04 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 Class::Declare::Attributes 0.04 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
File::Attributes is a Perl module to manipulate file metadata. Free Download
Class::Declare is a Perl module created to declare classes with public, private and protected attributes and methods. Free Download
Class::Meta::Declare is a Perl module deprecated in favor of Class::Meta::Express. Free Download
Class::Meta::Express is a Perl module for concise, expressive creation of Class::Meta classes. Free Download
Class::Generate is a Perl module that can generate Perl class hierarchies. Free Download
Method::Declarative is a Perl module to create methods with declarative syntax. Free Download
Class::Trait is a Perl implementation of Traits in Perl. Free Download
Locale::Memories is a Perl module for L10N Message Retrieval. Free Download