On Thu, 27 Jul 2017 16:14:18 -0700, sprout wrote: > On Thu, 27 Jul 2017 03:50:56 -0700, davem wrote: > > A downside of &PL_sv_zero is that if assigned to a variable, that > > variable > > gets int, num and string values rather than just an int value. > > Why does that need to be the case? Why cannot PL_sv_zero have just > the SvIOK flag on? > > Does it matter that \(%h && $foo) now returns a reference to a read- > only value when %h is empty? (If so, that can be solved by turning on > PADTMP on PL_sv_zero.) I think it does matter. grep(1,@list_with_one_item) returning a mutable 1 and grep(1,@list_with_zero_items) returning a read-only variable is the kind of icky inconsistency that I tried hard to eliminate. -- Father Chrysostomos --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=78288Thread Previous | Thread Next