X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP.pm;h=fce3380d9cf292b8a5f796e846182c7ad888978b;hb=c563582e753731dafe85baa91f4670b2bbdfb6ca;hp=4f70a1ac2140416b304a91fcd2136ef0242c1e2e;hpb=a9f50e21a1107a444935e5d8c3a38e466d8d2968;p=gitmo%2FMoose.git diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index 4f70a1a..fce3380 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -777,12 +777,12 @@ method dispatch. This module was designed to be as unintrusive as possible. Many of its features are accessible without B change to your existing -code. It is meant to be a compliment to your existing code and not an +code. It is meant to be a complement to your existing code and not an intrusion on your code base. Unlike many other B modules, this module B require you subclass it, or even that you C it in within your module's package. -The only features which requires additions to your code are the +The only features which require additions to your code are the attribute handling and instance construction features, and these are both completely optional features. The only reason for this is because Perl 5's object system does not actually have these features built @@ -819,8 +819,8 @@ given class is either the same as (or a subclass of) all of the class's ancestors. Downward metaclass compatibility means that the metaclasses of a -given class's ancestors are all either the same as (or a subclass -of) that metaclass. +given class's ancestors are all the same as (or a subclass of) that +metaclass. Here is a diagram showing a set of two classes (C and C) and two metaclasses (C and C) which have correct @@ -861,7 +861,7 @@ create an incorrect type of metaclass for you. This is a very rare problem, and one which can only occur if you are doing deep metaclass programming. So in other words, don't worry about it. -Note that if you're using L we encourage you to I use +Note that if you're using L we encourage you to I use the L pragma, and instead use L to apply roles to a class's metaclasses. This topic is covered at length in various L recipes. @@ -934,7 +934,7 @@ returned. =head2 Metaclass cache functions -Class::MOP holds a cache of metaclasses. The following are functions +C 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 these. Bad things could happen, but if you are brave and willing to risk it: go for it!