Re: Re: OOP question
| From: | Lukas Smith | Date: | Wed, 31 Aug 2005 06:20:33 +0000 |
| Subject: | Re: Re: OOP question | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39649@lists.php.net to get a copy of this message | ||
Ammar Ibrahim wrote:
So "normally" a Singleton should return null if no instance if the given object was created yet? Sounds fairly impractical. I think some of the Singleton implementations in PEAR even go so far as to completly ignore instances created directly or via a factory and since the static var they store the instance in as scoped inside the singleton method. regards, LukasI was under the impression a Singleton always implied a Factory.Not really :) Thanks for the tip, I will check the code