Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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)



Download (untitled) / with headers
text/plain 402b
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.
Download (untitled) / with headers
text/plain 563b
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
Download (untitled) / with headers
text/plain 498b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.