Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.335.096 Times

Class::Declare::Attributes 0.04

  Date Added: September 15, 2010  |  Visits: 1.011

Class::Declare::Attributes

Report Broken Link
Printer Friendly Version


Product Homepage
Download (93 downloads)



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 ); ... }.

Requirements: No special requirements
Platforms: Linux
Keyword: Attributes Classdeclareattributes Libraries Method Module Perl Perl Module Programming Sub Types
Users rating: 0/10

License: Freeware Size: 21.5 KB
USER REVIEWS
More Reviews or Write Review


CLASS::DECLARE::ATTRIBUTES RELATED
Modules  -  UC Free Order Payment Method 6.x-1.0-beta4
The UC Free Order Payment Method module works in conjunction with the payment checkout pane using the order total preview to present a "Free order" payment method to customers when their order total drops to $0.00 or less. By default, this method...
10 KB  
Modules  -  Formatted Number CCK 6.x-1.3
OverviewThe Formatted Number CCK module defines numeric types where thousands separator and decimal point are inherited from the Format Number API module.Numeric types supported: signed or unsigned integers (tiny, small, medium, int), decimal and...
20.48 KB  
Libraries  -  App::Modular::Module::Events 0.1.2
App::Modular::Module::Events is a Perl module with event handling for App::Modular compatible applications. SYNOPSIS #################################################################### package App::Modular::Module::Me; use base...
16.38 KB  
Libraries  -  Class::Meta::Express 0.04
Class::Meta::Express is a Perl module for concise, expressive creation of Class::Meta classes. Synopsis package My::Contact; use Class::Meta::Express; class { meta contact => ( default_type => string ); has name; has contact => (...
9.22 KB  
Libraries  -  Class::Classgen::New 3.03
Class::Classgen::New is a Perl module that creates the new() method for classes generated by classgen. SYNOPSIS Used within classgen. The main purpose of New.pm is to write the new() method for a class generated by classgen. It provides code...
24.58 KB  
Libraries  -  Class::Std 0.0.8
Class::Std is a Perl module to support for creating standard "inside-out" classes. SYNOPSIS package MyClass; use Class::Std; # Create storage for object attributes... my %name : ATTR; my %rank : ATTR; my %snum : ATTR; my %public_data :...
30.72 KB  
Libraries  -  Net::DBus::Tutorial::ExportingObjects 0.33.4
Net::DBus::Tutorial::ExportingObjects is a Perl module that contains tutorials on providing a DBus service. This document provides a tutorial on providing a DBus service using the Perl Net::DBus application bindings. This examples in this...
94.21 KB  
Libraries  -  Params::Validate 0.88
Params::Validate is a Perl module to validate method/function parameters. SYNOPSIS use Params::Validate qw(:all); # takes named params (hash or hashref) sub foo { validate( @_, { foo => 1, # mandatory bar => 0, # optional } ); } #...
79.87 KB  
Libraries  -  Devel::SelfStubber 5.8.8
Devel::SelfStubber is a Perl module that can generate stubs for a SelfLoading module. SYNOPSIS To generate just the stubs: use Devel::SelfStubber; Devel::SelfStubber->stub(MODULENAME,MY_LIB_DIR); or to generate the whole module with stubs...
12.2 MB  
Libraries  -  Gtk2::Ex::MindMapView::Content::Picture 0.000001
Gtk2::Ex::MindMapView::Content::Picture is a Perl module to display a picture. HEIRARCHY Gtk2::Ex::MindMapView::Content +----Gtk2::Ex::MindMapView::Content::Picture SYNOPSIS use Gtk2::Ex::MindMapView::Content::Picture Displays a picture...
50.18 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB