Subject: | MooseX::Singleton doesn't call new when created automatically |
Date: | Thu, 22 Jan 2009 16:40:11 -0600 |
To: | bug-MooseX-Singleton [...] rt.cpan.org |
From: | Josh <slushie [...] gmail.com> |
Message body is not shown because sender requested not to inline it.
If I have a singleton object and try to access one of its members without
first creating the instance (with Singleton->new or ->instance),
construct_instance is called via MooseX::Singleton::Meta::Instance (in
get_singleton_instance, I believe). This doesn't call new on Moose::Object
in the end, thus skipping my BUILDARGS, et al.
I have attached a test case isolating the issue.