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

[email protected] (Olivier Mengué)
Newsgroups perl.moose
Message-ID <CAEWvDFJupUTds8z-q1wOV-dGTa4s2yDpz1o3Y-ZWwLkTZktOGA@mail.gmail.com>
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).
>


So far only positive votes (check the list archive of this thread).

The patch still applies cleanly on master (I've just rebased it and pushed).

Olivier.
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.