Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50269 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49034 invoked from network); 16 Nov 2010 21:48:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2010 21:48:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=tomsartain@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tomsartain@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tomsartain@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:45967] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/99-25421-306F2EC4 for ; Tue, 16 Nov 2010 16:22:12 -0500 Received: by bwz13 with SMTP id 13so749447bwz.29 for ; Tue, 16 Nov 2010 13:22:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=8AE49YRtJ+wVO1NXRaJK0y6hcwAU8foufTNqu8LZ2G8=; b=CwsOoBVV0nTuo+hCwwz5SZeUxXU61iJHF68Eo6eQJZexq5W1QlvSMmEW6RsiPENBUt fZ13SnuY0eyQd2m9wPeFo4U+KepVcZfXAl1scpdqZop8xjZBhRaSYXYBTfOviOLO5Qcv h5BWoGAww+fbhVtX82om42b9HYGRGWSaJVmSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=t8JcePzWTanWtaXhiVwY5yD8Jgy2lXQ2pdIQkQqBpbQodaA4Ov4IWhNZLYCPNXAMmx S22OGXN5qJZ70ENr+mEdypfg6HKK/G+V2jjT68fralkyMSAzazPpZa2XnYBOAQHXBVNO fCcJb7UfCdOAnYoLtudh1S2YR3fiRNWg4PDbQ= MIME-Version: 1.0 Received: by 10.204.122.7 with SMTP id j7mr2451365bkr.125.1289942529235; Tue, 16 Nov 2010 13:22:09 -0800 (PST) Received: by 10.204.56.131 with HTTP; Tue, 16 Nov 2010 13:22:09 -0800 (PST) In-Reply-To: References: Date: Tue, 16 Nov 2010 16:22:09 -0500 Message-ID: To: Ferenc Kovacs Cc: Simas Toleikis , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Traits and static methods From: tomsartain@gmail.com (Tom Sartain) On Tue, Nov 16, 2010 at 3:55 PM, Ferenc Kovacs wrote: > > for reusable singleton pattern with php 5.3 > http://www.slideshare.net/fabpot/design-patternrevisitedphp53 > slide 11 and 12 > > Tyrael > The problem with the solution presented in the slides is that it limits every singleton class to only ever be able to inherit from Singleton, so we can't have a child class that is a singleton while the parent is not. Something that having Traits would solve. Though we'd still have singletons, which is a different problem. -Tom