Move SvAMAGIC flag from object to stash
authorFather Chrysostomos <sprout@cpan.org>
Fri, 18 May 2012 05:26:20 +0000 (22:26 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 01:09:24 +0000 (18:09 -0700)
commita1cd65be3e8d2e7a6b4edef2ff5eee74e79cf497
treee32a148ea20b616ffb7bf2a8262e2bff9c9deb97
parent54f6ba105424d583f3ad66ad05790975c5d7a86d
Move SvAMAGIC flag from object to stash

By putting the flag on the stash, we can allow the overloaded status
of all objects of a particular class to change without having to
change the flag on every object (which would require traversing arenas
or keeping caches).

This partially fixes bug #112708, in that objects that existed before
their class had any overloading will start working after overloading
is introduced if other objects are blessed into that class.

Without blessings of other objects, they still don’t work yet.  The
fix for that is yet to come....

This was also a good excuse for deleting a comment that contained two
typos.  :-)
gv.c
lib/overload.t
sv.h