d1d2e3df9cdc425e61be7e7099dbd23fd992f8c8
[gitmo/Class-MOP.git] / TODO
1 ---------------------------------------------------------------------
2 TODO
3 ---------------------------------------------------------------------
4
5 - switch to Context::Handle for method modifiers
6
7 Should probably write some more tests to verify this works correctly
8 when we add it in, to make sure we don't break weird stuff.
9
10 - add ::Attribute::Collection types
11
12 mugwump was working on this ...
13
14 - do not bless methods unless asked
15
16 We should turn off automagic method blessing for classes which are 
17 not explictly asking for a metaclass.
18
19 ---------------------------------------------------------------------
20 EXAMPLES TO WRITE
21 ---------------------------------------------------------------------
22
23 - Prototype-style example
24
25 Make a C::MOP::Class subclass which has an AUTOLOAD method, the 
26 method will DWIM depending up on the value it is passed.
27
28   Foo->prototype->say_hello(sub { print "Hello" });
29
30 This will turn into this:
31
32   Foo->prototype->add_method('say_hello' => sub { print "Hello" });
33
34 I am not sure how we should handle non-method arguments, mostly 
35 because those would be static prototype variables, which would 
36 translate to class package variables. 
37
38 ---------------------------------------------------------------------
39 TO PONDER
40 ---------------------------------------------------------------------
41
42 - Make a Class::MOP::Package 
43
44 Class::MOP::Class would be a subclass of this, but I am not sure 
45 this is worth the time. 
46
47
48
49
50
51
52
53
54