Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 73790
Status: resolved
Priority: 0/
Queue: MooseX-Aliases

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

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



Subject: Clarify relationship between aliasing and OOP
Consider: { package Foo; use Moose; use MooseX::Aliases; sub name { "foo" } alias moniker => "name"; } { package Bar; use Moose; extends "Foo"; sub name { "bar" } } { use Modern::Perl; say Foo->new->moniker; # says "foo" say Bar->new->moniker; # ??? } Bar inherits "moniker" from Foo, but which version of the sub "name" does Bar->new->moniker call? And what about method modifiers... { package Foo; use Moose; use MooseX::Aliases; sub name { "foo" } alias moniker => "name"; around name => sub { warn "called name" }; } { use Modern::Perl; say Foo->new->moniker; # does this warn? } I've tested these and the first example does say "bar", and the second example does warn. But I shouldn't have needed to figure that out through experimentation. The docs should tell me.
Think you could come up with a patch?
Yes, sure.
Fixed in 0.11.