Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 46169
Status: resolved
Priority: 0/
Queue: Mouse

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

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



The example code given in the SYNOPSIS fails as follows: ====cut mlawren@lifebook:~/src/Mouse-0.22$ perl Makefile.PL Writing Makefile for Mouse mlawren@lifebook:~/src/Mouse-0.22$ make ... mlawren@lifebook:~/src/Mouse-0.22$ perl -Iblib/lib package Point; use Mouse; # automatically turns on strict and warnings has 'x' => (is => 'rw', isa => 'Int'); has 'y' => (is => 'rw', isa => 'Int'); sub clear { my $self = shift; $self->x(0); $self->y(0); } package Point3D; use Mouse; extends 'Point'; has 'z' => (is => 'rw', isa => 'Int'); after 'clear' => sub { my $self = shift; $self->z(0); }; ^D Method modifiers require the use of Class::Method::Modifiers or Class::Method::Modifiers::Fast. Please install it from CPAN and file a bug report with this application. at lib/Mouse.pm line 43 ====cut I don't know if Class:Meth:Mod is not considered a hard dependency, but if the SYNOPSIS needs it to work, perhaps it should be a 'requires' anyway? Cheers, Mark. -- Mark Lawrence
Subject: Re: [rt.cpan.org #46169]
Date: Mon, 18 May 2009 19:02:15 +0900
To: bug-Mouse [...] rt.cpan.org
From: Tokuhiro Matsuno <tokuhirom [...] gmail.com>
Download (untitled) / with headers
text/plain 297b
Show quoted text
> I don't know if Class:Meth:Mod is not considered a hard dependency, but > if the SYNOPSIS needs it to work, perhaps it should be a 'requires' anyway?
I seems "no dependencies" is one of good point in Mouse. I think, we want to copy & paste some codes from Class::Method::Modifiers, doesn't it?
Download (untitled) / with headers
text/plain 166b
Hi, Mouse 0.37 has an implementation of method modifiers, although Class::Method::Modifiers can be used if installed. Regards, -- Goro Fuji (gfx) GFUJI at CPAN.org


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.