From: Tomas Doran Date: Wed, 18 Feb 2009 22:58:43 +0000 (+0000) Subject: Add comment to clarify, update TODO X-Git-Tag: 5.80001~92 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=dfa27f53795d92fb1b4f38dfbc17c6af3bdc4e86 Add comment to clarify, update TODO --- diff --git a/TODO b/TODO index bec19e9..03ae67f 100644 --- 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 diff --git a/lib/Catalyst/ClassData.pm b/lib/Catalyst/ClassData.pm index f7761e9..72062d9 100644 --- a/lib/Catalyst/ClassData.pm +++ b/lib/Catalyst/ClassData.pm @@ -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];