On Mon, Sep 22, 2008 at 12:54:39PM -0400, Michael G Schwern via RT wrote:
Show quoted text> Mon Sep 22 12:53:59 2008: Request 39513 was acted upon.
> Transaction: Ticket created by MSCHWERN
> Queue: Devel-Declare
> Subject: Be aware of subroutine attributes.
> Broken in: 0.002000
> Severity: Normal
> Owner: Nobody
> Requestors: mschwern@cpan.org
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=39513 >
>
>
> Devel::Declare doesn't appear to be aware of subroutine attributes. For
> example...
>
> package Foo;
>
> use Method::Signatures;
>
> method echo($arg) : Something {
> return $arg;
> }
>
> This is a syntax error.
so is
sub method (&);
method : Something { ...
which is how you're doing it in Method::Signatures.
Show quoted text> I think it's just that Devel::Declare puts the "sub" keyword just before
> the { rather than before the :.
We don't put one in at all.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director
http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/