moose/moose — pull request #7 by exodist (2012-01-02 09:56:10+00:00)
Title: leak_check attribute property

See here for my initial suggestion: http://article.gmane.org/gmane.comp.lang.perl.moose/2352

I am starting this pull request early, I know some work is necessary, but I would love feedback.

Issues:
* Probably does not work right when used on attributes in roles
* I do not have tests for attributes defined in base classes, though I added logic for them

I am not sure how to implement role support since there is the problem that the meta-class may not exist any longer during destruction.

This is probably not an issue in global destruction, only in instance destruction, as such it can probably use the meta-class and simply skip checks when the meta-class cannot be found? This requires testing. it is 2:00am here and this took longer than I expected.