X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=lib%2FLexical%2FTypes.pm;h=d97761b42b32272846695f77293d15cb5c95f4d2;hp=f3ff14d7ade23e55bfa598346b63e65c6e51d65f;hb=99dd805ff2026836a638c45fed6ecd4d4d483833;hpb=5d3e8553645b9d731fd7b0aaf0151ae588adca87 diff --git a/lib/Lexical/Types.pm b/lib/Lexical/Types.pm index f3ff14d..d97761b 100644 --- a/lib/Lexical/Types.pm +++ b/lib/Lexical/Types.pm @@ -165,8 +165,21 @@ You can integrate L in your module so that using it will provide =head1 CAVEATS -For C to be able to parse C, the package C must be defined somewhere, and this even if you use the C<'as'> option to redirect to another package. -It's unlikely to find a workaround, as this happens deep inside the lexer, far from the reach of an extension. +For C to be able to parse C, you need : + +=over 4 + +=item * + +either the C package to be defined ; + +=item * + +or for C to be a constant sub returning a valid defined package. + +=back + +Those restrictions apply even if you use the C<'as'> option to redirect to another package, and are unlikely to find a workaround as this happens deep inside the lexer - far from the reach of an extension. Only one mangler or prefix can be in use at the same time in a given scope. @@ -202,6 +215,8 @@ Tests code coverage report is available at L