Re: Class attributes

[email protected] (Dave Rolsky)
Newsgroups perl.moose
Message-ID <[email protected]>
On Thu, 21 Feb 2008, [email protected] wrote:

> the statement
> has 'foo' => ('is' => 'ro' ...) ;
>
> declares a instance attribute of objects created later on when ->new is called.
>
> Is there a way to have a class attribute that is created during compile time?

package Foo;

use MooseX::ClassAttribute;

class_has 'Count' => ( ... );


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.