Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16185 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43691 invoked by uid 1010); 9 May 2005 19:57:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27724 invoked from network); 9 May 2005 19:33:57 -0000 Received: from unknown (HELO ionzoft.com) (127.0.0.1) by localhost with SMTP; 9 May 2005 19:33:57 -0000 X-Host-Fingerprint: 209.161.72.28 theta.altoona-pa.com Linux 2.4/2.6 Received: from ([209.161.72.28:40135] helo=theta.altoona-pa.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id B9/78-35155-32BBF724 for ; Mon, 09 May 2005 15:33:55 -0400 Received: from JASONGARBER2 (static-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id AF1E213D5A for ; Mon, 9 May 2005 15:33:51 -0400 (EDT) Date: Mon, 9 May 2005 15:35:52 -0400 X-Mailer: The Bat! (v3.0) Professional Reply-To: Jason Garber Organization: IonZoft, Inc. X-Priority: 3 (Normal) Message-ID: <577721963.20050509153552@ionzoft.com> To: internals@lists.php.net In-Reply-To: <200505091130.56300.lpedretti@suserver.com> References: <200505091130.56300.lpedretti@suserver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] make new return a reference to existent object From: jason@ionzoft.com (Jason Garber) Hello, -1 New implies "new". Use a factory. Maybe we should add an old construct: $object = old MyClass(); Just kidding :) -- Best regards, Jason mailto:jason@ionzoft.com Monday, May 9, 2005, 10:30:56 AM, you wrote: LP> I would like (for code cleanliness purposes) to make 'new' return a reference LP> to an already created object under certain circumstances without using a LP> factory, is it possible? LP> Thanx