Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28322 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27090 invoked by uid 1010); 11 Mar 2007 10:26:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27074 invoked from network); 11 Mar 2007 10:26:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2007 10:26:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=news@sea.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:51895] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/E0-40270-149D3F54 for ; Sun, 11 Mar 2007 05:26:10 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HQLFZ-00061g-Og for internals@lists.php.net; Sun, 11 Mar 2007 11:26:02 +0100 Received: from p50887bbc.dip.t-dialin.net ([80.136.123.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Mar 2007 11:26:01 +0100 Received: from sb by p50887bbc.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Mar 2007 11:26:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Sun, 11 Mar 2007 11:25:52 +0100 Lines: 14 Message-ID: References: <36961.127.0.0.1.1173580198.squirrel@synergy8.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: p50887bbc.dip.t-dialin.net User-Agent: Thunderbird 2.0b2 (Windows/20070116) In-Reply-To: <36961.127.0.0.1.1173580198.squirrel@synergy8.com> Sender: news Subject: Re: [PHP-DEV] Native Singleton Implementation From: sb@sebastian-bergmann.de (Sebastian Bergmann) scott.mcnaught@synergy8.com wrote: > Yes! Moving the singleton functionality into core php. Its an excellent > OOP feature. Besides the obvious implementation considerations (should the Singleton object be unique in a single PHP instance or across "all" PHP instances, etc.), I am very much against putting reference implementations of design patterns into a programming language. If you want this, you have not understood the intention of design patterns (or the difference (in degrees of freedom) when compared to algorithms). -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69