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