Add comment to clarify, update TODO
Tomas Doran [Wed, 18 Feb 2009 22:58:43 +0000 (22:58 +0000)]
TODO
lib/Catalyst/ClassData.pm

diff --git a/TODO b/TODO
index bec19e9..03ae67f 100644 (file)
--- a/TODO
+++ b/TODO
@@ -11,10 +11,6 @@ Documentation:
 
    - Run more smokes
 
-   - Test/document ->Class::MOP::Object::meta call in ::ClassData
-
-   - Change dispatcher and upgrade docs appropriately (no new method needed)
-
    - Using anything ::[CMV]:: should warn (once, on boot).
 
    - TestApp should not use NEXT. There should be a TestAppNEXTCompat
index f7761e9..72062d9 100644 (file)
@@ -12,6 +12,7 @@ sub mk_classdata {
   my $slot = '$'.$attribute;
   my $accessor =  sub {
     my $pkg = ref $_[0] || $_[0];
+    # Hack - delberately create a metaclass instance
     my $meta = $pkg->Class::MOP::Object::meta();
     if (@_ > 1) {
       $meta->namespace->{$attribute} = \$_[1];