X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FFunctor.pm;h=96ecbb4ff69bfb5681bed550fc6a783e8da5bd7c;hp=f71ce6cd5a03fb90c6b44c43e5b1ba1407dbda5d;hb=b212ec02c4010c5200e7741d432397bfede7ca50;hpb=ef679b337db1a2a398350ef836c3c43f0766355a diff --git a/lib/LaTeX/TikZ/Functor.pm b/lib/LaTeX/TikZ/Functor.pm index f71ce6c..96ecbb4 100644 --- a/lib/LaTeX/TikZ/Functor.pm +++ b/lib/LaTeX/TikZ/Functor.pm @@ -91,7 +91,7 @@ The default set and mod rules clone their relevant objects, so you get a clone f my $clone = Tikz->functor; my $dup = $set->$clone; -If there is already a default rule for one of the C<$spec>s, it is replaced by the new one ; otherwise, the user rule is appended to the list of default rules. +If there is already a default rule for one of the C<$spec>s, it is replaced by the new one ; otherwise, the user rule is inserted into the list of default rules after all its descendants' rules and before all its ancestors' rules. # A translator my $translate = Tikz->functor( @@ -208,7 +208,7 @@ LaTeX::TikZ::Interface->register( Adds to all subsequently created functors a default rule for the class or role C<$spec>. -An exception is thrown if there is already a default rule for C<$spec> ; otherwise, the new rule is appended to the current list of default rules. +An exception is thrown if there is already a default rule for C<$spec> ; otherwise, the new rule is inserted into the current list of default rules after all its descendants' rules and before all its ancestors' rules. But if C<$spec> begins with C<'+'>, the rule will replace I default rules that apply to subclasses or subroles of C<$spec> (including C<$spec> itself). Returns true if and only if an existent rule was replaced.