# from Michael G Schwern # on Tuesday 09 September 2008 01:20: >A stand-alone, single file, no non-core >dependencies, 5.6 compatible implementation of 80% of Moose. That way > I can just copy it into the Test::Builder2 distribution and have a > real OO system. > >So, anyone want to take a crack at this? We can get a lot of millage > out of just has() (with is, isa and default) and extends().
Class::Accessor::Classy does the 'is' bit, not the type checking or defaults, and lets you do extends with @ISA (so long as you don't kick it out while doing - but I guess extends() wouldn't be hard to add.) It is small though. And you can replace the meta syntax if you like, decide to install directly in the caller, override any or all of it. Make it look like moose? Probably. I should have named it Goose. Or Zeus. Juice? Caboose? --Eric -- Cult: A small, unpopular religion. Religion: A large, popular cult. -- Unknown --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------