Commit | Line | Data |
682a6e93 |
1 | --------------------------------------------------------------------- |
2 | TODO |
1396f86b |
3 | --------------------------------------------------------------------- |
682a6e93 |
4 | |
c54756cd |
5 | - do not bless methods unless asked |
6 | |
7 | We should turn off automagic method blessing for classes which are |
8 | not explictly asking for a metaclass. |
9 | |
682a6e93 |
10 | --------------------------------------------------------------------- |
11 | EXAMPLES TO WRITE |
12 | --------------------------------------------------------------------- |
13 | |
14 | - Prototype-style example |
15 | |
16 | Make a C::MOP::Class subclass which has an AUTOLOAD method, the |
17 | method will DWIM depending up on the value it is passed. |
18 | |
19 | Foo->prototype->say_hello(sub { print "Hello" }); |
20 | |
21 | This will turn into this: |
22 | |
23 | Foo->prototype->add_method('say_hello' => sub { print "Hello" }); |
24 | |
25 | I am not sure how we should handle non-method arguments, mostly |
26 | because those would be static prototype variables, which would |
27 | translate to class package variables. |
28 | |
682a6e93 |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |