Make your MooseX object constructors blow up on unknown attributes Maintained by:glarkin@FreeBSD.org Port Added: 24 Oct 2008 17:12:30 Also Listed In:perl5 License: not specified in port
Simply loading the MooseX::StrictConstructor module makes your
constructors "strict". If your constructor is called with an attribute
init argument that your class does not declare, then it calls
"Carp::confess()". This is a great way to catch small typos.
WWW: http://search.cpan.org/dist/MooseX-StrictConstructor/
- Revert ports/165605 as requested by portmgr@
Note: devel/p5-B-Size and devel/p5-Devel-Arena
where intentionally not restored.
PR: ports/165605
Approved by: portmgr (bapt)
Feature safe: yes (I sure hope so)
- Remove ports that only work with < perl 5.12 (devel/p5-B-Size,
devel/p5-Devel-Arena)
- Remove conditionals for PERL_LEVEL < 501200
- Remove regression-test targets b/c this will be centralized in Mk/bsd.perl.mk
- Other minor cleanups
RUN_DEPENDS = ${BUILD_DEPENDS} -> RUN_DEPENDS:= ${BUILD_DEPENDS}
PR: ports/165605
Submitted by: pgollucci (myself)
Approved by: portmgr (linimon)
Exp Run by: linimon
Tested by: make index
Simply loading the MooseX::StrictConstructor module makes your
constructors "strict". If your constructor is called with an attribute
init argument that your class does not declare, then it calls
"Carp::confess()". This is a great way to catch small typos.
WWW: http://search.cpan.org/dist/MooseX-StrictConstructor/