Re: Newborn MooseX module up for adoption

[email protected] (Ricardo Signes)
Newsgroups perl.moose
Message-ID <[email protected]>
* Tomas Doran <[email protected]> [2011-08-28T09:30:36]
> But if you really want to, there's a role for this already:
> 
> http://search.cpan.org/~logie/MooseX-Role-MissingMethodUtils-0.02/lib/MooseX/Role/MissingMethodUtils.pm
> 

That role is beyond utterly totally broken.  Among the many ways, this is my
favorite:

    use 5.14.1;
    use lib 'lib';

    package Class {
        use Moose;
        with 'MooseX::Role::MissingMethodUtils';
    }

    Class->new;

...results in...

    Deep recursion on subroutine "MooseX::Role::MissingMethodUtils::can" at lib/MooseX/Role/MissingMethodUtils.pm line 33.

The tests miss this and a few other good ones.

-- 
rjbs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.