Patch/Enhancement request for the Native Types infrastructure to make it easier to add externally defined things that work the same way.
[email protected] (Kent Fredric)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CAATnKFBvniX=bEn=y9fKhKZqKa4AFS5SPM4+HwyHP-OwKVg6iQ@mail.gmail.com> |
I was trying to work and create a new Native Type using the existing base libraries in Moose for Native Types ( esp with regard to delegate handles without needing the actual parameter being a bless() or tie() ), and hit a few bumps that made it slightly difficult to use without resorting to duplicating the entirety of lib/Moose/Meta/Attribute/Native/Trait.pm I for whatever reason don't have commit access to git.moose.perl.org , so here's my test cases and related shit in a branch on github https://github.com/kentfredric/moose/compare/master...topic;native_traits_flex The method names I had headaches over choosing the right names for :( -- Kent perl -e "print substr( \"edrgmaM SPA NOcomil.ic\\@tfrken\", \$_ * 3, 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" http://kent-fredric.fox.geek.nz