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: 67019
Status: resolved
Priority: 0/
Queue: Mouse

People
Owner: Nobody in particular
Requestors: peter [...] pg-consultants.com
Cc:
AdminCc:

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



Subject: strict_constructor
Date: Mon, 28 Mar 2011 14:48:28 +0200
To: bug-mouse [...] rt.cpan.org
From: Peter Gordon <peter [...] pg-consultants.com>
Download (untitled) / with headers
text/plain 400b
Hi, In the program, examples/warns.pl there is meant to be a fatal error, but there isn't one. __PACKAGE__->meta->make_immutable(strict_constructor => 1); package main; # extra 'z' is supplied (FATAL) my $point1 = Point->new(x => 5, y => 7, z => 9); Changing it to two statements triggers the fatal error. __PACKAGE__->meta->strict_constructor(1); __PACKAGE__->meta->make_immutable; Peter
Download (untitled) / with headers
text/plain 217b
Hi, Now the strict constructor is available via MouseX::StrictConstructor, so I have fix example/warns.pl with it. Thanks. Resolved at d9332e884f3767ebbd3e5dc7a3ae948ce61f61a7. -- 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.