Class::MethodMaker::V1Compat 2.08 review

Download
by rbytes.net on

Class::MethodMaker::V1Compat is a V1 compatibility code for C::MM. SYNOPSIS This class is for internal implementation only

License: Perl Artistic License
File size: 86K
Developer: Martyn J. Pearce
0 stars award from rbytes.net

Class::MethodMaker::V1Compat is a V1 compatibility code for C::MM.

SYNOPSIS

This class is for internal implementation only. It is not a public API.

Class::MethodMaker version 2 strives for backward-compatiblity with version 1 as far as possible. That is to say, classes built with version 1 should work with few if any changes. However, the calling conventions for building new classes are significantly different: this is necessary to achieve a greater consistency of arguments.

Version 2 takes all arguments within a single arrayref:

use Class::MethodMaker
[ scalar => 'a' ];

If arguments are presented as a list, then Class::MethodMaker assumes that this is a version 1 call, and acts accordingly. Version 1 arguments are passed and internally rephrased to version 2 arguments, and passed off to the version 2 engine. Thus, the majority of version 1 calls can be upgraded to version 2 merely by rephrasing. However, there are a number of behaviours that in version 1 that are internally inconsistent. These behaviours are mimicked in version 1 mode as far as possible, but are not reproducible in version 2 (to allow version 2 clients to rely on a more internally consistent interface).

Requirements:
Perl

Class::MethodMaker::V1Compat 2.08 keywords