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

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

Thread Next
From:
Vincent Pit
Date:
April 30, 2008 04:14
Subject:
[PATCH] Double magic/warnings with tie $x, $m
Message ID:
62186.92.128.43.82.1209554040.squirrel@92.128.43.82
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.
Vincent.
Thread Next


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