This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
scope.c: Simplify and clarify comment
authorFather Chrysostomos <sprout@cpan.org>
Wed, 25 Apr 2012 21:08:48 +0000 (14:08 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 21 May 2012 23:51:43 +0000 (16:51 -0700)
commita3fb8386c0197cbdf57134ce82c6c5e21263e723
tree1579b2fa8cb023f91f40ffde156b27b335501ac2
parentfbdd83da9d18c8503ae64943ae75be034fecb787
scope.c: Simplify and clarify comment

This comment seems to imply that this code is just working around a
problem in gv.c, which we could simply correct there.  I’ve already
tried making the quoted code in gv.c handle *^H without a hash, but it
doesn’t actually solve the problem.  The real problem is that rv2hv
could also add a hash to *^H, via GvHVn, and that is simply not set up
to deal with autovivifying magic at all, and probably shouldn’t be.

Also, quoting a piece of code that occurs elsewhere is just asking for
it to drift apart.  By this time, the code in gv.c that is quoted in
scope.c is actually three times the length now, and looks completely
different.
scope.c