Re: make new return a reference to existent object

From: Date: Mon, 09 May 2005 19:35:52 +0000
Subject: Re: make new return a reference to existent object
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-16185@lists.php.net to get a copy of this message
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

« previous php.internals (#16185) next »