|Subject:||Makes simple readers to install easily|
Hello, This is not a bug report, but a patch to improve Class::MOP. I have implemented a new simple reader mechanism with Perl Magic, which enables all the classes to define simple readers very easily. See the attached file and note that Class::MOP::Class, for example, defines many simple readers without preparations. In fact, the prehashed_keys table is no longer needed, although some SVs are moved to independent variables (e.g. mop_package, mop_VERSION, and etc.). More over, I have include an improvement using shared SVs. Shared SVs are suitable for hash keys because shared SVs have their hash value and HV APIs (e.g. hv_fetch_ent()) know how to fetch pre-computed hash values from shared SVs (see also hv_fetch_common() in 5.10.0). Regards, -- Goro Fuji (gfx) GFUJI at CPAN.org
Message body is not shown because it is too large.