
perlbug-followup at perl
Apr 24, 2012, 8:45 PM
Views: 196
Permalink
|
|
[perl #108286] Wishlist: Overridable keywords
[In reply to]
|
|
On Tue Apr 24 00:39:50 2012, nicholas wrote: > On Mon, Apr 23, 2012 at 03:13:39PM -0700, Father Chrysostomos via RT wrote: > > On Mon Apr 23 14:03:27 2012, nicholas wrote: > > > The intent of the changes appears to be to retain the 5.003 and > > > earlier > > > behaviour on what gets assigned for each construction, but change the > > > loop > > > behaviour to terminate on undefined rather than simply falsehood for > > > the > > > common simple cases: > > > > > > while (OP ...) > > > > > > and > > > > > > while ($var = OP ...) > > > > Except that while($var = each %h) implies defined(), but while(each %h) > > does not. So something got screwed up. :-) > > Yes. I *thought* that question was about while(each %h) [not] assigning to > $_, but I missed the [not] using defined. > > Pretty sure that the intent was that the intent at the time was to change it > to use defined. And I'd guess that it was missed because it's not the same > opcode structure. > > So that's a bug? That’s what I was trying to ask. :-) -- Father Chrysostomos --- via perlbug: queue: perl5 status: open https://rt.perl.org:443/rt3/Ticket/Display.html?id=108286
|