morgon has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks!

I am currently looking into Moose (which is very cool by the way) and wonder how to represent "static" (in the Java/C++ sense of the word - i.e. class-level) attributes.

Conceptually I would expect that such "static" attributes could simply be normal attributes of a class's Metaclass, but I cannot find any "syntactic sugar" for that in Mooose.

So would I have to implement Metaclasses or Traits myself own for such tings that or is there some functionality already in place that I am just to stupid to find?

Many thanks!

Replies are listed 'Best First'.
Re: Moose question
by bruno (Friar) on Apr 06, 2009 at 14:37 UTC