Skip Menu |

This queue is for tickets about the Class-Std CPAN distribution.

Report information
The Basics
Id: 15426
Status: rejected
Priority: 0/
Queue: Class-Std

People
Owner: Nobody in particular
Requestors: me [...] heyjay.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.0.4
Fixed in: (no value)



Subject: Too sensitive to whitespace and formatting
Class::Std v0.0.4, upon perl 5.8.4, Linux I feel like this must have been reported before, but I can't find reference to in rt or in the docs. Class::Std does not like when the :ATTRs are broken on to multiple lines (for formatting) and does not if the "(" is not right up against the :ATTR tag. Both of these examples break: # Compare 1st line with 2nd, only change is spacing the "(" jstrauss@ubuntu:~/bin$ perl -MClass::Std -e 'my %name :ATTR( :get<name>);' jstrauss@ubuntu:~/bin$ perl -MClass::Std -e 'my %name :ATTR ( :get<name>);' Invalid separator character '(' in attribute list at -e line 1, near "%name :ATTR " syntax error at -e line 1, near "%name :ATTR " Execution of -e aborted due to compilation errors. # Here I break the ATTRs across lines (I did this in a file to confirm # it wasn't a command line issue also) jstrauss@ubuntu:~/bin$ perl -MClass::Std -e 'my %name :ATTR( :get<name> Show quoted text
> :set<name>);'
Invalid HASH attribute: >); ( :get<name> :set<name>) at -e line 1 Thanks Jay
[guest - Mon Oct 31 13:42:19 2005]: Show quoted text
> Class::Std does not like when the :ATTRs are broken on to multiple > lines (for formatting) and does not if the "(" is not right up > against the :ATTR tag.
I encountered the same problem with a module I was developing. This is the fault of the Perl parser. You should report this as a bug against Perl, and not Class::Std.
Date: Tue, 01 Nov 2005 11:52:00 -0500
To: bug-Class-Std [...] rt.cpan.org
Subject: Re: [cpan #15426] Too sensitive to whitespace and formatting
From: Damian Conway <thoughtstream [...] gmail.com>
RT-Send-Cc:
Hi Jay, Show quoted text
> I feel like this must have been reported before, but I can't find reference to in rt or in the docs. > > Class::Std does not like when the :ATTRs are broken on to multiple lines (for formatting) > and does not if the "(" is not right up against the :ATTR tag.
Unfortunately, this is a limitation of the underlying Perl attribute mechanism, not of Class::Std. Hence, there is nothing I can do about it. All the best, Damian