This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Implement the loop in tryAMAGICunDEREF_var() using while, rather than goto.
authorNicholas Clark <nick@ccl4.org>
Tue, 2 Nov 2010 16:40:39 +0000 (16:40 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 2 Nov 2010 16:40:39 +0000 (16:40 +0000)
commitf5d6f09660e01aad6e56a94e20e2fcda90381934
treee15dcbadf57b0d3d1d491ad99f31f4553d46c92a
parent9f8bf29815397e529be92022542fb51ea86d3fd5
Implement the loop in tryAMAGICunDEREF_var() using while, rather than goto.

Yes, it was a while loop implemented using goto, although this only became
clear by untangling the macros. I believe it need never have been implemented
as goto, given that the other user of tryAMAGICunW_var "broke" out of the
"if"'s block using a return, hence that "if" could have been a "while" all
along.
pp.h