Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 84194
Status: rejected
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: POULHS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.0604
Fixed in: (no value)



Subject: Handking of white-spaces in conjunction with module names needs to be improved
use MooseX::Declare; class Baz with (Foo, Bar) {}; Whitespace should be optional, it is NOT allowed after '(' nor before ')' but is optional around the ',' (where it is washed away). regards
Subject: bug.pl
#!/usr/bin/env perl use MooseX::Declare; role Foo { } role Bar { } # class Baz with ( Foo, Bar ) { } # Foo is not a module name at ./bug.pl line 9. # ^leading space # class Baz with (Foo, Bar ) { } # Bar is not a module name at ./bug.pl line 12. # ^trailing space class Baz with (Foo, Bar) { } ## OK print $MooseX::Declare::VERSION,"\n"; # 0.35 print $Moose::Util::VERSION,"\n"; # 2.0604 1;
Subject: Re: [rt.cpan.org #84194] Handking of white-spaces in conjunction with module names needs to be improved
Date: Mon, 25 Mar 2013 08:57:44 -0500 (CDT)
To: Poul H. Sørensen via RT <bug-Moose [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Mon, 25 Mar 2013, Poul H. Sørensen via RT wrote: Show quoted text
> Mon Mar 25 07:03:39 2013: Request 84194 was acted upon. > Transaction: Ticket created by POULHS > Queue: Moose > Subject: Handking of white-spaces in conjunction with module names needs > to be improved > Broken in: 2.0604 > Severity: Normal > Owner: Nobody > Requestors: POULHS@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84194 > > > > use MooseX::Declare; > class Baz with (Foo, Bar) {}; > > Whitespace should be optional, it is NOT allowed after '(' nor before ')' but is optional around the ',' (where it is washed away).
This is almost certainly a bug in MooseX::Declare, not Moose. You should report it there. /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/