Filewatcher File Search File Search
Catalog
Content Search
» » » » »

MooseX-Declare-0.10.tar.gz

Homepage:-
Package version:-
Architecture:-
Distribution:Perl-CPAN
Filename:MooseX-Declare-0.10.tar.gz

/MooseX-Declare-0.10/README

NAME
    MooseX::Declare - Declarative syntax for Moose

SYNOPSIS
        use MooseX::Declare;

        class BankAccount {
            has 'balance' => ( isa => 'Num', is => 'rw', default => 0 );

            method deposit (Num $amount) {
                $self->balance( $self->balance + $amount );
            }

            method withdraw (Num $amount) {
                my $current_balance = $s
more»

/MooseX-Declare-0.10/Changes

0.10  Wed, 08 Apr 2009 04:09:56 +0200
  * Depend on D::D 0.003005 for the inject_if_block return value.
  * Docs now mention namespace::clean (Ash Berlin).
  * Refactor - aka throw code away - by potring to
    D::D::Context::Simple (Ash Berlin).
  * Remove prototype from exported subs (Ash Berlin).
  * Make keywords less reversed (i.e. as hash keys) and make class()
    return an anon-metaclass (
more»

/MooseX-Declare-0.10/TODO

* Implement class Foo;
* Only set up the matching declarators inside of class and role.
  (i.e. no augment in role)
* Implemet subclass { ... }, meaning class Foo extends OuterClass { ... } for
  nested classes.
* Allow $class = extends Foo { ... }; and $class = with Role { ... }; for
  creating anonymous classes. Not only $class = class extends Foo { .. };
  doesn't read very well, it's also hard
more»

Browse inside MooseX-Declare-0.10.tar.gz

         [DIR]MooseX-Declare-0.10/ (11)

Download MooseX-Declare-0.10.tar.gz

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com