X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=bb8bfa591e0f26b5adfa23169a6ad9d026dffea6;hb=refs%2Ftags%2Fv0.26;hp=46e7ac3093076d1675b85d0f26b05b8786246675;hpb=9d92a5b82b92f5f1b31393d4aab400eb68e04f0b;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index 46e7ac3..bb8bfa5 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -13,13 +13,13 @@ Variable::Magic - Associate user-defined magic to variables from Perl. =head1 VERSION -Version 0.25 +Version 0.26 =cut our $VERSION; BEGIN { - $VERSION = '0.25'; + $VERSION = '0.26'; } =head1 SYNOPSIS @@ -195,6 +195,8 @@ B<5.11.x> I : 'len' magic is no longer invoked when calling C with a magical scalar. +I : 'len' magic is no longer called when pushing / unshifting an element into a magical array in void context. The C part was already covered by I. + =back =head1 CONSTANTS @@ -231,6 +233,10 @@ When this constant is true, you can use the C callbac True for perls that don't call 'len' magic when you push an element in a magical array. +=head2 C + +True for perls that don't call 'len' magic when you unshift in void context an element in a magical array. + =head2 C True for perls that call 'clear' magic when undefining magical arrays. @@ -377,7 +383,7 @@ our @EXPORT = (); our %EXPORT_TAGS = ( 'funcs' => [ qw/wizard gensig getsig cast getdata dispell/ ], 'consts' => [ qw/SIG_MIN SIG_MAX SIG_NBR MGf_COPY MGf_DUP MGf_LOCAL VMG_UVAR/, - qw/VMG_COMPAT_ARRAY_PUSH_NOLEN VMG_COMPAT_ARRAY_UNDEF_CLEAR/, + qw/VMG_COMPAT_ARRAY_PUSH_NOLEN VMG_COMPAT_ARRAY_UNSHIFT_NOLEN_VOID VMG_COMPAT_ARRAY_UNDEF_CLEAR/, qw/VMG_COMPAT_SCALAR_LENGTH_NOLEN/, qw/VMG_PERL_PATCHLEVEL/, qw/VMG_THREADSAFE/ ]