stevan / p5-mop-redux

A(nother) MOP for Perl 5
139 stars 36 forks source link

Trap class method attribute access #26

Closed stevan closed 11 years ago

stevan commented 11 years ago

If a method is called as a class method, but the method tries to access instance data, we should trap it and throw an exception. I suspect this can be handled in the Variable::Magic wizard in the syntax module.