From: Shawn M Moore Date: Wed, 7 Jan 2009 14:53:00 +0000 (+0000) Subject: Metaclass-cache documentation cleanups X-Git-Tag: 0.76~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6c84267748ee3a198c83718264c4d5ad38eeb93e;p=gitmo%2FClass-MOP.git Metaclass-cache documentation cleanups --- diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index 679307d..b520e2e 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -953,32 +953,32 @@ If none of the classes can be loaded, it will throw an exception. =head2 Metaclass cache functions -Class::MOP holds a cache of metaclasses, the following are functions +Class::MOP holds a cache of metaclasses. The following are functions (B) which can be used to access that cache. It is not -recommended that you mess with this, bad things could happen. But if -you are brave and willing to risk it, go for it. +recommended that you mess with these. Bad things could happen, but if +you are brave and willing to risk it: go for it! =over 4 =item B -This will return an hash of all the metaclass instances that have -been cached by B keyed by the package name. +This will return a hash of all the metaclass instances that have +been cached by B, keyed by the package name. =item B -This will return an array of all the metaclass instances that have +This will return a list of all the metaclass instances that have been cached by B. =item B -This will return an array of all the metaclass names that have +This will return a list of all the metaclass names that have been cached by B. =item B This will return a cached B instance, or nothing -if no metaclass exist by that C<$name>. +if no metaclass exists with that C<$name>. =item B @@ -986,18 +986,19 @@ This will store a metaclass in the cache at the supplied C<$key>. =item B -In rare cases it is desireable to store a weakened reference in -the metaclass cache. This function will weaken the reference to -the metaclass stored in C<$name>. +In rare cases (e.g. anonymous metaclasses) it is desirable to +store a weakened reference in the metaclass cache. This +function will weaken the reference to the metaclass stored +in C<$name>. =item B This will return true of there exists a metaclass stored in the -C<$name> key and return false otherwise. +C<$name> key, and return false otherwise. =item B -This will remove a the metaclass stored in the C<$name> key. +This will remove the metaclass stored in the C<$name> key. =back