Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52419 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24365 invoked from network); 17 May 2011 06:42:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2011 06:42:40 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:35859] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/C1-05118-DD812DD4 for ; Tue, 17 May 2011 02:42:38 -0400 Received: by iwn3 with SMTP id 3so195533iwn.29 for ; Mon, 16 May 2011 23:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=MK7kxhQJcGxA6CGuKlY8VXpSnEBzoJzHOajXr8SOiOQ=; b=omZElbijm/h/DjyAwblvxOuKsA8UxZpvyk+AlJmGRbgfDlJp5szHpXUB+OelWvVbgC jwo+BoKBLXK2PtqHytVvYwSh01xBXMHbC2pbVPbrw8xggwgGshMWrQdmFicqHh7XFYVx qcf5mo4TzCbHpKnQemXDGtX7napn22NZzN4sY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rHbzobFthcNr/xYAo8FOVbppqPd5mgh8Vgw6PXv3Mmnqro4GAPYcrnhUzXN6mQzxE9 iRMWd6UIKnNPy7K8NrQ0oMVF1WUD1ObxBPdWYidAubaExnK/A5r4mhGqgI/DOQpeX0PE YiGbSY/vjDZ2eWnlow9oA0ac1t/2AIkCCxoNE= MIME-Version: 1.0 Received: by 10.42.141.133 with SMTP id o5mr265991icu.166.1305614554328; Mon, 16 May 2011 23:42:34 -0700 (PDT) Received: by 10.231.10.68 with HTTP; Mon, 16 May 2011 23:42:34 -0700 (PDT) In-Reply-To: <7FCA24D2-64A9-4E8C-8AE9-8934A5B074E6@gmail.com> References: <1305570720.1344.535.camel@guybrush> <4DD17ECD.4070505@sugarcrm.com> <20110516212511.GA13139@crousti> <7FCA24D2-64A9-4E8C-8AE9-8934A5B074E6@gmail.com> Date: Tue, 17 May 2011 10:42:34 +0400 Message-ID: To: Benjamin Dubois Cc: Etienne Kneuss , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Inconsistencies with constructors in SPL From: indeyets@gmail.com (Alexey Zakhlestin) On Tue, May 17, 2011 at 4:22 AM, Benjamin Dubois wrote: > Why not make all objects (maybe implicitly) extend a single root object, = containing just skeleton ctor/dtor and implemented in the engine ? > > I don't know if it is actually =C2=A0possible in PHP, but that works for = several other languages (java, objC - in that case, the root object is expl= icit-, C# AFAR) > > This would also bypass the error-level debate (no error would be thrown) +1 --=20 Alexey Zakhlestin, http://twitter.com/jimi_dini http://www.milkfarmsoft.com/