Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: d70c5bb7e399e03044989783fe20aeb9a1d9ee28 https://github.com/Perl/perl5/commit/d70c5bb7e399e03044989783fe20aeb9a1d9ee28 Author: Graham Knop <ha...@haarg.org> Date: 2022-10-24 (Mon, 24 Oct 2022)
Changed paths: M lib/overload.pm Log Message: ----------- overload: clean up whitespace The file was partly using 2 space indents, partly using 4 space indents, and occasionally tabs. Standardize on 4 space indents using spaces. Commit: 7bbbab6355eb372544cd7b8c9e17b2396f4c6362 https://github.com/Perl/perl5/commit/7bbbab6355eb372544cd7b8c9e17b2396f4c6362 Author: Graham Knop <ha...@haarg.org> Date: 2022-10-24 (Mon, 24 Oct 2022) Changed paths: M lib/overload.pm Log Message: ----------- overload: remove localizing of error varibles when not loading a module Localizing $@ and $! was added when the code was loading Scalar::Util at runtime. We're no longer loading any modules in this part of the code, so we don't need to localize anything. Commit: dd770c51a6cb49a3f8d99bd2c9918b4e692a298c https://github.com/Perl/perl5/commit/dd770c51a6cb49a3f8d99bd2c9918b4e692a298c Author: Graham Knop <ha...@haarg.org> Date: 2022-10-24 (Mon, 24 Oct 2022) Changed paths: M lib/overload.pm Log Message: ----------- overload: only disable builtin warnings where blessed is called Until recently, overload did not enable or disable any warnings. Instead, it would rely on the value of $^W, or the -w flag. When switching to use the builtin::blessed function, the code was changed to disable 'experimental::builtin' warnings. Since no other warnings are changed, the current active warning set is combined with this one disabled category, and baked in for the entire module. The currently active warning set is determined by $^W, so whatever its value was when overload was compiled would get baked in, and any runtime changes to $^W would no longer have any impact. The particular warning that would most commonly be emitted by overload is the sub redefinition warning, in case an overload was being overwritten. Various modules, such as JSON::PP and Cpanel::JSON::XS, were expecting to be able to overwrite overloads without any warnings. They would set $^W to false to prevent them. After the "no warnings 'experimental::builtin';" line was added, it became impossible to disable these warnings at runtime. Move the disabling of the experimental warnings to a smaller scope. This means that the rest of the module is restored to its previous state of having warnings controlled by $^W. Commit: cb139c94d62e78d96843b31faa87b3fdb504eaf3 https://github.com/Perl/perl5/commit/cb139c94d62e78d96843b31faa87b3fdb504eaf3 Author: Graham Knop <ha...@haarg.org> Date: 2022-10-24 (Mon, 24 Oct 2022) Changed paths: M lib/overload.pm Log Message: ----------- overload: bump version Compare: https://github.com/Perl/perl5/compare/bd622d03617a...cb139c94d62e