Re: Replacing "use base" with "use parent"

[email protected] (Olivier Mengué)
Newsgroups perl.moose
Message-ID <CAEWvDFJcb+A+7uqq0g_gmVsvfHw-qk-DbqovpdhZLxeB3xWuSQ@mail.gmail.com>
I'm Warnocked about my Moose patch.
http://en.wikipedia.org/wiki/Warnock%27s_dilemma

2012/9/21 Olivier Mengué <[email protected]>

> Hi,
>
> From the base.pm documentation<http://perldoc.perl.org/base.html#DESCRIPTION>:
>
>
> Unless you are using the fields pragma, consider this module discouraged
> in favor of the lighter-weight parent .
>
> From the parent.pm documentation<http://perldoc.perl.org/parent.html#HISTORY>
> :
>
> This module was forked from base to remove the cruft that had accumulated
> in it.
>
> parent.pm is a 30 lines pure Perl dual module available also in core
> since 5.10.1.
>
>
> So I've done the work to replace all "use base" with either "use parent"
> or "use parent -norequire => ". Most changes are in lib/Class/ and t/.
> The code is here:
> https://github.com/dolmen/p5-Moose/commits/topic/base-to-parent
> (branch topic/base-to-parent at git://github.com/dolmen/p5-Moose.git)
>
> I've yet not touched the 'benchmark' directory to avoid breaking reference
> values. Tell me if I should go further...
>
> Olivier Mengué (DOLMEN).
>
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.