From: Stevan Little Date: Sun, 30 Apr 2006 16:55:07 +0000 (+0000) Subject: TODO-list X-Git-Tag: 0_29_02~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=682a6e93a3e6b8eb9d826721f359dcc148488e1e;p=gitmo%2FClass-MOP.git TODO-list --- diff --git a/TODO b/TODO new file mode 100644 index 0000000..7fbd151 --- /dev/null +++ b/TODO @@ -0,0 +1,49 @@ +--------------------------------------------------------------------- +TODO +--------------------------------------------------------------------- + +- switch to Context::Handle for method modifiers + +Should probably write some more tests to verify this works correctly +when we add it in, to make sure we don't break weird stuff. + +- add ::Attribute::Collection types + +mugwump was working on this ... + +--------------------------------------------------------------------- +EXAMPLES TO WRITE +--------------------------------------------------------------------- + +- Prototype-style example + +Make a C::MOP::Class subclass which has an AUTOLOAD method, the +method will DWIM depending up on the value it is passed. + + Foo->prototype->say_hello(sub { print "Hello" }); + +This will turn into this: + + Foo->prototype->add_method('say_hello' => sub { print "Hello" }); + +I am not sure how we should handle non-method arguments, mostly +because those would be static prototype variables, which would +translate to class package variables. + +--------------------------------------------------------------------- +TO PONDER +--------------------------------------------------------------------- + +- Make a Class::MOP::Package + +Class::MOP::Class would be a subclass of this, but I am not sure +this is worth the time. + + + + + + + + +