X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=45ba9b533fda18fc139a78ceb47001802882f393;hb=2078b6422b776ca13c21374d85aa15f3f274cc65;hp=ac1f80676074026591be2e87afd3f54e0dad5006;hpb=0842790276f868200cec87bdcf6fdbbd8b23dc5e;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index ac1f806..45ba9b5 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -293,6 +293,8 @@ However, only the return value of the C callback currently holds a meaning. set => sub { print STDERR "set to ${$_[0]}\n" }, free => sub { print STDERR "${$_[0]} was deleted\n" } +Note that C callbacks are I called during global destruction, as there's no way to ensure that the wizard and the C coderef weren't destroyed before the scalar. + =cut sub wizard {