]> Dogcows Code - chaz/p5-Return-Type-Lexical/commitdiff
add code comment
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Tue, 10 Mar 2020 16:51:21 +0000 (10:51 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Tue, 10 Mar 2020 16:51:21 +0000 (10:51 -0600)
lib/Return/Type/Lexical.pm

index 873d447e87175332d9b4202c9411767525f1d56d..8da614a016af249c35d1c7308343b08cddf56485 100644 (file)
@@ -26,6 +26,10 @@ sub _in_effect {
     return !defined $in_effect || $in_effect;
 }
 
+# XXX This is kind of janky. It relies upon Return::Type using Attribute::Handlers, and it assumes
+# some internal Attribute::Handlers behavior. If it proves to be too fragile, we may need to copy
+# the Return::Type code to here. Or make Return::Type lexical if that can be done without breaking
+# backward-compatibility.
 my $handler;
 BEGIN {
     $handler = $UNIVERSAL::{ReturnType};
This page took 0.021644 seconds and 4 git commands to generate.