Description:
moose@perl.org (Moderated)
|
|
|
Role1 with attribute matches requires on Role2
|
| |
Hi,
I keep getting bitten by this, and I was wondering if this is
something that will be solved eventually, or its something that would
be nice to solve but it is actually tricky to do, or just that I'm
doing it wrong.
I have two roles, R1 and R2. R1 defines a attribute ctx. R2 requires a 'ctx'.... more »
|
|
MooX::late Problem: Undefined slot
|
| |
Hi all,
Using this program that uses
[link] , I am getting this
when running it:
<<<<
shlomif@telaviv1:~$ perl Test.pl
rng_schema_basename is undefined at Test.pl line 41.
shlomif@telaviv1:~$ ...
And I wonder why. It should work as it is. Any insight would be appreciated. I... more »
|
|
Moo and Moose together with Throwable::Error.
|
| |
I'm curious how Moo and Moose play together.
I have some classes that make use of
Throwable::Error<[link]>,
which uses the StackTrace::Auto role. The problem is StackTrace::Auto
builds Devel::StackTrace without the "no_refs" option set, so my objects... more »
|
|
union isn't finding the types
|
| |
the code,
use Class::Load 0.20 'load_class';
use Moose::Role;
...
...
has _log => (
isa => 'Log::Any::Adapter::Base | Log::Any::Adapter::Null',
is => 'ro',
lazy => 1,
default => sub { load_class('Log::Any')->get_lo gger },
);
attached is the the stack trace, what about unions do I not... more »
|
|
BUILD called twice.
|
| |
Hi all,
I had a problem that I tracked down to BUILD getting run twice.
It turned out a subclass was (incorrectly) using "after 'BUILD'". When
that happens the BUILD in the base class runs twice.
I realize it's an improper use of BUILD but just wanted to note it in case
it's not an expected behavior.... more »
|
|
UML for a Role
|
| |
Hi there.
I'm new at mo...@perl.org and just like to know how you use to represent a
Moose::Role in a UML diagram? Just like an ordinary class and <<type>>?
______________________________ __________
Thiago Glauco Sanchez
Tec. Telecom. Pl. - Petrobras SA
ITIL, MCSO, ECS ( Routing, Wireless, Switching )... more »
|
|
moose and pod
|
| |
Hi!
I am new to the list and also still new to Moose. I wonder how exactly to
document my Moose classes. I am sure you discussed this before, but I
couldn't find much on the list archive. Perhaps it's time to add something
on this matter to the documentation. Perhaps in Best Practices. Or
elsewhere in Manual. Perhaps I am also missing something. Please point me... more »
|
|
detecting primary types
|
| |
Is there a way to tell if a moose attribute type is a primary type? For example, I want to tell the difference between an attribute that is a Str and an attribute that is some type of reference.
|
|
Wrapping a method of an instance
|
| |
I need some help with understanding the Class::MOP::Method docs. Can I use
that to apply a modifier?
Catalyst used to call $c->prepare_body_chunk which made it easy for a
plugin or role to track upload progress. Now, this all happens in a loop
in the Catalyst::Request instance in its prepare_body() method.... more »
|
|
|