Commit | Line | Data |
682a6e93 |
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 | --------------------------------------------------------------------- |
15 | EXAMPLES TO WRITE |
16 | --------------------------------------------------------------------- |
17 | |
18 | - Prototype-style example |
19 | |
20 | Make a C::MOP::Class subclass which has an AUTOLOAD method, the |
21 | method will DWIM depending up on the value it is passed. |
22 | |
23 | Foo->prototype->say_hello(sub { print "Hello" }); |
24 | |
25 | This will turn into this: |
26 | |
27 | Foo->prototype->add_method('say_hello' => sub { print "Hello" }); |
28 | |
29 | I am not sure how we should handle non-method arguments, mostly |
30 | because those would be static prototype variables, which would |
31 | translate to class package variables. |
32 | |
33 | --------------------------------------------------------------------- |
34 | TO PONDER |
35 | --------------------------------------------------------------------- |
36 | |
37 | - Make a Class::MOP::Package |
38 | |
39 | Class::MOP::Class would be a subclass of this, but I am not sure |
40 | this is worth the time. |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |