From: Dave Rolsky Date: Thu, 12 Mar 2009 15:00:37 +0000 (-0500) Subject: No space between function name & args in docs. X-Git-Tag: 0.78_01~58 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=15ab5451fae477ab1688e5da9581f7e9c0d0aac5;p=gitmo%2FClass-MOP.git No space between function name & args in docs. Fix handling of book and paper titles to be correct (book titles are underlined or italicized, papers are quoted). --- diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index fd4afd5..f444cfe 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -838,23 +838,23 @@ Note that these are all called as B. =over 4 -=item B +=item B This will load a given C<$class_name> and if it does not have an already initialized metaclass, then it will intialize one for it. This function can be used in place of tricks like -C or using C. +C or using C unconditionally. -=item B +=item B -This will return a boolean depending on if the C<$class_name> has -been loaded. +Returns a boolean indicating whether or not C<$class_name> has been +loaded. NOTE: This does a basic check of the symbol table to try and determine as best it can if the C<$class_name> is loaded, it is probably correct about 99% of the time. -=item B +=item B B @@ -865,7 +865,7 @@ In Perl 5.10 or greater, this flag is package specific. However in versions prior to 5.10, this will use the C variable which is not package specific. -=item B +=item B B @@ -873,24 +873,7 @@ This function returns two values, the name of the package the C<$code> is from and the name of the C<$code> itself. This is used by several elements of the MOP to detemine where a given C<$code> reference is from. -=item B - -B - -If possible, we will load the L module and this will function -as C does, otherwise it will just return the C<$code> -argument. - -=item B - -B - -If L is available, this returns true under global -destruction. - -Otherwise it's a constant returning false. - -=item B +=item B B @@ -926,28 +909,28 @@ been cached by B. This will return a list of all the metaclass names that have been cached by B. -=item B +=item B This will return a cached B instance, or nothing if no metaclass exists with that C<$name>. -=item B +=item B This will store a metaclass in the cache at the supplied C<$key>. -=item B +=item B 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 +=item B This will return true of there exists a metaclass stored in the C<$name> key, and return false otherwise. -=item B +=item B This will remove the metaclass stored in the C<$name> key. @@ -964,13 +947,13 @@ email me and let me know, I would love to hear about them. =over 4 -=item "The Art of the Meta Object Protocol" +=item I -=item "Advances in Object-Oriented Metalevel Architecture and Reflection" +=item I -=item "Putting MetaClasses to Work" +=item I -=item "Smalltalk: The Language" +=item I =back @@ -978,7 +961,7 @@ email me and let me know, I would love to hear about them. =over 4 -=item Uniform and safe metaclass composition +=item "Uniform and safe metaclass composition" An excellent paper by the people who brought us the original Traits paper. This paper is on how Traits can be used to do safe metaclass composition, @@ -987,7 +970,7 @@ metaclass compatibility. L -=item Safe Metaclass Programming +=item "Safe Metaclass Programming" This paper seems to precede the above paper, and propose a mix-in based approach as opposed to the Traits based approach. Both papers have similar