Re: Trying to create an attribute trait that prompts for a value if none specified
[email protected] (Chris Weyl)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CABSyATE4iv_wYSR1Qd2Cixxq+Zfw-CD7da1hfSC40p42UY1gvg@mail.gmail.com> |
On Thu, Dec 22, 2011 at 6:21 PM, Buddy Burden <[email protected]>wrote: > So, anyway: ideas? You can use the fact that the attribute's default is called as a method on the instance itself to look up the associated metaclass, then the attribute, then the type constraint... At that point the type constraint, if any, should exist. :) -Chris -- Chris Weyl Ex astris scientia