2010/1/28 Buddy Burden <barefootco...@gmail.com>:
[snip rather copious and hard to follow example]

> So is there any way to have one attribute be the argument curried to
> another attribute's methods?

See, now here I think you finally said what you're trying to achieve.
If I understand correctly it's what my MooseX::CurriedHandles module does.

http://search.cpan.org/~rataxis/MooseX-CurriedHandles-0.03/lib/MooseX/CurriedHandles.pm

It's oldish MooseX code, and while it works it could do with a little
love - it requires you to set an attribute metaclass rather than a
meta-attribute trait so it doesn't coexist with other attribute
metaclasses. It doesn't look like that's an issue for your example, I
mention it both because it might be in real life, and in the hope that
somebody volunteers to work on it (I'm not exactly CFT-enabled at the
moment).

/joel

Reply via email to