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

MooseX-Declare-0.22.tar.gz

Homepage:-
Package version:-
Architecture:-
Distribution:FreeBSD distfiles
Filename:MooseX-Declare-0.22.tar.gz

/MooseX-Declare-0.22/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.22/Changes

0.22  Wed, 06 May 2009 02:37:37 +0200
  * Add TODO tests for creating nested anonymous classes and roles
    (nperez).
  * Always end injected code with a semicolon.
  * Only do namespace nesting if the inner namespace starts with "::".
  * Depend on D::D 0.005001 to get a skip_declarator that doesn't fail
    when code is being compiled between calling the linstr callback and
    skip_declarator.
more»

/MooseX-Declare-0.22/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.22.tar.gz

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

Download MooseX-Declare-0.22.tar.gz

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