Skip Menu |

This queue is for tickets about the MooseX-Struct CPAN distribution.

Report information
The Basics
Id: 93749
Status: new
Priority: 0/
Queue: MooseX-Struct

People
Owner: Nobody in particular
Requestors: jhk7799 [...] daum.net
Cc:
AdminCc:

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



Subject: _build_struct is not using a named parameters for init_meta().
I'm using the perl version v5.18.2 & MooseX::Struct 0.6. when I using this module in my system, I can't pass a test. If my guess is right, that's because not using named-parameter 'for_class'. When I modify some code of init_meta(), it have been worked properly. MooseX/Struct.pm 101 sub _build_struct { 102 my $name = shift; 103 my $attributes = shift; 104 105 ### Initialize $name as a Moose object (inherits, by default, from Moose::Object) 106 Moose->init_meta(for_class => $name); 107 108 ### imports moose functions into $name package, not necessarily caller's 109 Moose->import({into => $name});