Skip Menu |
 

This queue is for tickets about the Moo CPAN distribution.

Report information
The Basics
Id: 99217
Status: resolved
Priority: 0/
Queue: Moo

People
Owner: Nobody in particular
Requestors: grinnz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.003000
Fixed in: (no value)



Subject: Composing Moo::Roles to object causes error if two attributes with defaults are composed
Date: Mon, 29 Sep 2014 15:08:38 -0400
To: bug-Moo [...] rt.cpan.org
From: Dan Book <grinnz [...] gmail.com>
Download (untitled) / with headers
text/plain 329b
Perl 5.16. Example code attached. Running "use MooTest; MooTest->new" causes what I assume to be the code to compose the attributes to be spit out to STDERR along with the warning "Use of ?PATTERN? without explicit operator is deprecated at (eval 26) line 50." It appears to be interpreting the two ternary operators as a regex.
Download error.txt
text/plain 1.9k

Message body is not shown because sender requested not to inline it.

Download MooTest.pm
text/x-perl 665b

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #99217] AutoReply: Composing Moo::Roles to object causes error if two attributes with defaults are composed
Date: Mon, 29 Sep 2014 15:14:56 -0400
To: bug-Moo [...] rt.cpan.org
From: Dan Book <grinnz [...] gmail.com>
Download (untitled) / with headers
text/plain 1.2k
Sorry, editor wordwrapped the error output... here it is again. On Mon, Sep 29, 2014 at 3:08 PM, Bugs in Moo via RT <bug-Moo@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "Composing Moo::Roles to object causes error if two attributes > with defaults are composed", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #99217]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=99217 > > Please include the string: > > [rt.cpan.org #99217] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Moo@rt.cpan.org > > ------------------------------------------------------------------------- > Perl 5.16. Example code attached. Running "use MooTest; MooTest->new" > causes what I assume to be the code to compose the attributes to be spit > out to STDERR along with the warning "Use of ?PATTERN? without explicit > operator is deprecated at (eval 26) line 50." It appears to be interpreting > the two ternary operators as a regex. >
Download error.txt
text/plain 1.9k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 165b
Thanks for the report. This bug has been fixed in git, and will be in the next release. https://github.com/moose/Moo/commit/c88e5d3cc64987ed54ab4b3c7a15bd72065b754e
Fixed in 1.006001


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.