Skip Menu |

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

Report information
The Basics
Id: 70962
Status: open
Priority: 0/
Queue: MooseX-Singleton

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

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



I've a singleton class S which I'm using inside of class A. I just instantiate S inside class A. It's not a member or something. I just do my $util = S->new; I'm aware of the fact that my is declaring it to the current scope. I'm class A to class B. I wish that the documentation specified a best-practice or a way to have access to class S within class B. -- Your bugs , they are afraid of me.
I guess I could re-instantiate it in class B but.. I'm not sure if this is a good way to do it. On Wed Sep 14 08:41:23 2011, WSDOOKADR wrote: Show quoted text
> I've a singleton class S which I'm using inside of class A. > I just instantiate S inside class A. It's not a member or something. > I just do my $util = S->new; I'm aware of the fact that my is > declaring it to the current scope. > I'm class A to class B. > I wish that the documentation specified a best-practice or a way to
have Show quoted text
> access to class S within class B.
-- Your bugs , they are afraid of me.
Subject: a way to have the singleton inside an inherited class
On Wed Sep 14 08:41:23 2011, WSDOOKADR wrote: Show quoted text
> I've a singleton class S which I'm using inside of class A. > I just instantiate S inside class A. It's not a member or something. > I just do my $util = S->new; I'm aware of the fact that my is > declaring it to the current scope. > I'm class A to class B.
I mean I extend B from class A. Show quoted text
> I wish that the documentation specified a best-practice or a way to
have Show quoted text
> access to class S within class B.
-- Your bugs , they are afraid of me.