Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 47031
Status: rejected
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: gfuji [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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
Subject: MOP-code-template.patch

Message body is not shown because it is too large.

This doesn't apply to current Class::MOP. If we still want this (I don't know whether or not we do), the patch will likely need to be rewritten.