From: Dave Rolsky Date: Sat, 31 Jan 2009 17:21:11 +0000 (+0000) Subject: Document that initialize() returns a cached metaclass if it exists. X-Git-Tag: 0.77~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a8b1b88a333470f9ea1fcc15ffa0498b67b98fd0;p=gitmo%2FClass-MOP.git Document that initialize() returns a cached metaclass if it exists. --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 657b2c4..fdd91aa 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1243,8 +1243,9 @@ as we use a special reserved slot (C<__MOP__>) to store this. =item B -This initializes and returns returns a B object -for a given a C<$package_name>. +This initializes and returns returns a B object for +a given a C<$package_name>. If a metaclass already exists for the +package, it simply returns it instead of creating a new one. =item B