Jesse Luehrs wrote:
This is true though - could you give an example of the stack trace
you're getting
perl -E 'package Foo; use Moose; has bar = (is = ro, required = 0, isa = Int, builder =
buildit, lazy = 1); sub buildit { return } package main; my $foo = Foo-new(); say $foo-bar()'
Perhaps you could explain the problem a little more, there might be
another way to go about this.
- Stevan
On Oct 29, 2009, at 8:34 AM, Elliot Shank wrote:
Me on Twitter yesterday: Had to hack
Moose::Meta::Method::throw_error() to make it Carp::confess() to
tell how an attribute
Stevan Little wrote:
Perhaps you could explain the problem a little more, there might be
another way to go about this.
has blah = (
isa = 'Foo',
builder = '_build_blah',
);
I was getting a constraint violation that appeared to come out of nowhere. It
wasn't
I was getting a constraint violation that appeared to come out of nowhere.
It wasn't anywhere that was attempting to set the attribute or call a
constructor.
I couldn't tell where the error was coming from because the Moose error
system doesn't include the complete stack.
That kind of
On Thu, Oct 29, 2009 at 10:29:37PM -0500, Evan Carroll wrote:
I was getting a constraint violation that appeared to come out of nowhere.
It wasn't anywhere that was attempting to set the attribute or call a
constructor.
I couldn't tell where the error was coming from because the Moose
Have to agree with Evan here, without a reproduce-able example we can't turn
it into a test and possibly fix it :)
The always agreeable Evan.
--
Evan Carroll
System Lord of the Internets
http://www.evancarroll.com