Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64303 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83209 invoked from network); 16 Dec 2012 19:26:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2012 19:26:13 -0000 Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:32785] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/4A-27715-5502EC05 for ; Sun, 16 Dec 2012 14:26:13 -0500 Received: by mail-la0-f42.google.com with SMTP id s15so4170721lag.29 for ; Sun, 16 Dec 2012 11:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:organization:message-id:in-reply-to :user-agent; bh=dp0pW2TwxeX7OCyC1dScEAdm8rW5N36Zw0Osz12NDiA=; b=bZdNHbuaWzq5DpIjmTQWkQQbYtG83nsIR2YuS1ZnxrrX2EeBhwsJYICxk0ygZW/V+J XyQ9ROTNqjqzJm+ThrieW7dgysTfwypUBeXY0pw3Sa9hv2I2EqtRbo6kNv5lzT3uVSgY il8WjscJBgdmRHGy43j/Kzm6wqa2UMa/EhOoV0liqJtlCGJbee9azQW9TlXul8KvD03l +4Ijs18d1zfuTleD65nTZY6phQhbrmJrNgUnlasUnh5QogOqvV+AODIFIRN4xPDNzqZb LVOM5rlwCKDKsR2g5IZMy6QMTUvQCga5HR7KmZbIEYRrqZPseZ5lj7xRWQyFsPuEUVRV lU7Q== Received: by 10.112.26.41 with SMTP id i9mr4900389lbg.77.1355685970123; Sun, 16 Dec 2012 11:26:10 -0800 (PST) Received: from xn--adm--jpa3a (128-72-33-141.broadband.corbina.ru. [128.72.33.141]) by mx.google.com with ESMTPS id lr20sm3996743lab.17.2012.12.16.11.26.08 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Dec 2012 11:26:09 -0800 (PST) Content-Type: text/plain; charset=koi8-r; format=flowed; delsp=yes To: "Derick Rethans" Cc: "internals@lists.php.net" References: <50C63A7C.8090705@gmail.com> Date: Sun, 16 Dec 2012 23:26:06 +0400 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Organization: home Message-ID: In-Reply-To: User-Agent: Opera Mail/12.11 (Win32) Subject: Re: [PHP-DEV] DateTime improvement From: inefedor@gmail.com (=?koi8-r?B?7snLydTB?=) I have actually started too, but I made it w/o inheritance from DateTime= , = and I made many of inline functions to avoid code repetition, so I don't= = know how good is it. The code on my work computer, so I can show it = tomorrow. Derick Rethans =D0=C9=D3=C1=CC(=C1) =D7 =D3=D7=CF=A3=CD= =D0=C9=D3=D8=CD=C5 Sun, 16 Dec 2012 = 16:21:47 +0400: > On Tue, 11 Dec 2012, Derick Rethans wrote: > >> On Mon, 10 Dec 2012, Herman Radtke wrote: >> >> > Another option is to make an ImmutableDateTime class. The DateTime >> > class could actually be changed to inherit the ImmutableDateTime >> > class. The only extensions on the DateTime class would be the mutab= le >> > methods. >> >> I'm not really against that, but we do need to use the Date namespace= - >> so DateTimeImmutable. It might be trickier to do than it sounds >> though... > > I've started hacking on this - with some luck I'm done before PHP 5.5 > beta1. > > cheers, > Derick