Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 47882
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: asuffield [...] suffields.me.uk
Cc:
AdminCc:

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



Subject: Call constructor on object reference with overloading
Date: Tue, 14 Jul 2009 21:20:04 +0100
To: bug-Moose [...] rt.cpan.org
From: Andrew Suffield <asuffield [...] suffields.me.uk>
Test attached. Somewhere, moose is calling operator 'ne' on an object; presumably it expected a class name instead. Perl doesn't like that on certain overloaded classes. Should be dead easy to fix once you find the pesking thing. --- Operation "ne": no method found, left argument in overloaded package Foo, right argument has no overloaded magic at generated method (unknown origin) line 2. --- Test is minimised; interestingly, it only happens after make_immutable. This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi

Message body is not shown because sender requested not to inline it.

On Tue Jul 14 16:20:33 2009, asuffield@suffields.me.uk wrote: Show quoted text
> Test attached. Somewhere, moose is calling operator 'ne' on an object; > presumably it expected a class name instead. Perl doesn't like that on > certain overloaded classes.
Hi Andrew, I've fixed this in a topic branch, topic/constructor_object_overload. It should make it out into the next release. Just going to have someone else glance over it to make sure it's fine. Shawn
This'll be fixed in the next release of Moose. Thanks!