X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=README;h=c0cc8a38c8157b51d089a6ad6197c50d89943a68;hb=ca0345bc78a38a61ec2f3886021532a7a205a0b2;hp=2130990038f8ee0840f868b2b94ff1db6f31d468;hpb=7c97a83a6831a64f4f6886fbc76b9f78af9d1d69;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/README b/README index 2130990..c0cc8a3 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Variable::Magic - Associate user-defined magic to variables from Perl. VERSION - Version 0.21_02 + Version 0.26 SYNOPSIS use Variable::Magic qw/wizard cast dispell/; @@ -16,11 +16,27 @@ SYNOPSIS DESCRIPTION Magic is Perl way of enhancing objects. This mechanism let the user add - extra data to any variable and overload syntaxical operations (such as + extra data to any variable and hook syntaxical operations (such as access, assignation or destruction) that can be applied to it. With this module, you can add your own magic to any variable without the pain of the C API. + Magic differs from tieing and overloading in several ways : + + * Magic isn't copied on assignation (as for blessed references) : you + attach it to variables, not values. + + * It doesn't replace the original semantics : magic callbacks trigger + before the original action take place, and can't prevent it to + happen. + + * It's mostly invisible at the Perl level : magical and non-magical + variables cannot be distinguished with "ref", "reftype" or another + trick. + + * It's notably faster, since perl's way of handling magic is lighter + by nature, and there's no need for any method resolution. + The operations that can be overloaded are : * "get" @@ -107,6 +123,12 @@ PERL MAGIC HISTORY *p14416* : 'copy' and 'dup' magic. + * 5.8.9 + + *p28160* : Integration of *p25854* (see below). + + *p32542* : Integration of *p31473* (see below). + * 5.9.3 *p25854* : 'len' magic is no longer called when pushing an element @@ -132,6 +154,10 @@ PERL MAGIC HISTORY *p32969* : 'len' magic is no longer invoked when calling "length" with a magical scalar. + *p34908* : 'len' magic is no longer called when pushing / unshifting + an element into a magical array in void context. The "push" part was + already covered by *p25854*. + CONSTANTS "SIG_MIN" The minimum integer used as a signature for user-defined magic. @@ -159,6 +185,10 @@ CONSTANTS True for perls that don't call 'len' magic when you push an element in a magical array. + "VMG_COMPAT_ARRAY_UNSHIFT_NOLEN_VOID" + True for perls that don't call 'len' magic when you unshift in void + context an element in a magical array. + "VMG_COMPAT_ARRAY_UNDEF_CLEAR" True for perls that call 'clear' magic when undefining magical arrays. @@ -324,8 +354,7 @@ SEE ALSO AUTHOR Vincent Pit, "", . - You can contact me by mail or on #perl @ FreeNode (vincent or - Prof_Vince). + You can contact me by mail or on "irc.perl.org" (vincent). BUGS Please report any bugs or feature requests to "bug-variable-magic at