develooper Front page | perl.perl5.porters | Postings from April 2008

Re: [PATCH] Double magic/warnings with tie $x, $m

Thread Previous
From:
Rafael Garcia-Suarez
Date:
April 30, 2008 04:51
Subject:
Re: [PATCH] Double magic/warnings with tie $x, $m
Message ID:
b77c1dce0804300451u66581ad8s8057a6c960315d2f@mail.gmail.com
2008/4/30 Vincent Pit <perl@profvince.com>:
> Hi.
>  When $m is undef, tie $x, $m generates two "undefined" warnings because $m
>  is also used for building the error message (just like it was for \&$x -
>  see http://xrl.us/bik5b). Also, sv_isobject() and gv_stashsv() both call
>  GET magic, so I changed the second for a gv_stashpvn().
>  Tested ok against 33767.
>  With this last patch, t/lib/warnings/9uninit no longer contains spurious
>  double warnings.

Woot. Thanks, applied as #33770.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About