Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32212 invoked by uid 1010); 19 Jan 2004 20:57:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32134 invoked from network); 19 Jan 2004 20:57:48 -0000 Received: from unknown (HELO longsword.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 19 Jan 2004 20:57:48 -0000 Received: from ip-66-80-117-2.nyc.megapath.net ([66.80.117.2] helo=[10.80.116.129]) by longsword.omniti.com with asmtp (TLSv1:RC4-SHA:128) (Exim 4.14) id 1AigSy-0005iA-Li; Mon, 19 Jan 2004 15:57:48 -0500 In-Reply-To: <74E71DB2-4AC1-11D8-ADF7-000393030CE6@bellsouth.net> References: <74E71DB2-4AC1-11D8-ADF7-000393030CE6@bellsouth.net> Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <4000FBF4-4AC2-11D8-AD25-000393B2B3C0@omniti.com> Content-Transfer-Encoding: 7bit Cc: PHP Development Date: Mon, 19 Jan 2004 15:58:36 -0500 To: lingwitt@bellsouth.net X-Mailer: Apple Mail (2.609) Subject: Re: [PHP-DEV] The __clone Wars From: george@omniti.com (George Schlossnagle) On Jan 19, 2004, at 3:52 PM, lingwitt@bellsouth.net wrote: > In other words, should it be like this: Yes. > > P.S. > > Perhaps the $this object should already be set using the default > implementation, and then the user could override certain properties if > he so wishes; I believe the preliminary documentation says that this > is the case, but it doesn't work like this. If you want the default cloning mechanism, you should just use the default clone method. If you specify your own __clone method, then you've effectively said 'I know what I am doing and how I want to do it.' Magical setting of attributes would a) be confusing b) cause twice the work to be done for any variables you don't want to be as default George