Skip Menu |

This queue is for tickets about the Moose-Policy CPAN distribution.

Report information
The Basics
Id: 46903
Status: open
Priority: 0/
Queue: Moose-Policy

People
Owner: Nobody in particular
Requestors: david.hampton [...] gmail.com
Cc:
AdminCc:

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



Subject: Breaks delgation of named subroutines
using moose::policy::followPBP breaks delegation of defined subroutines. handles => { has_path_content => 'has_node_content', get_path_content => 'get_node_content', set_path_content => 'set_node_content', gather_path => 'gather_node', walk_path => 'walk_tree', }, ); In the above gather_node and walk_tree are defined subroutines. However, the term $self->walk_path() does not work. Eliminating the module and setting getter and setter methods of "get_attribute" & "set_attribute" solves it. perl 5.10 ubuntu 9.04
Dave, I am not sure I understand what you mean, can you provide a full runnable example? Also, MooseX::FollowPBP is the preferred version of this to use, we are going to be deprecating Moose::Policy before too long. Thanks, - Stevan On Fri Jun 12 20:23:58 2009, davehamptonusa wrote: Show quoted text
> using moose::policy::followPBP breaks delegation of defined subroutines. > > handles => { > has_path_content => 'has_node_content', > get_path_content => 'get_node_content', > set_path_content => 'set_node_content', > gather_path => 'gather_node', > walk_path => 'walk_tree', > }, > ); > > In the above gather_node and walk_tree are defined subroutines. > However, the term $self->walk_path() does not work. > > Eliminating the module and setting getter and setter methods of > "get_attribute" & "set_attribute" solves it. > > perl 5.10 > ubuntu 9.04