Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18689 invoked from network); 3 Jun 2013 16:49:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2013 16:49:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:37207] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/E3-21406-E19CCA15 for ; Mon, 03 Jun 2013 12:49:34 -0400 Received: by mail-ie0-f170.google.com with SMTP id e14so11441888iej.29 for ; Mon, 03 Jun 2013 09:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; bh=Hz4Z4BG9eVje7SLK2Qu85IFYoj3LmQMvYYDEBZQCTsY=; b=Vu469AkVPaQek/DSOeBjycR6F2iQtymy4g+2FAVmYHh1Oj8Qf1cuLbCDltTubJrFFC pNfGkE22Zli6DZz6GHcgL9H486rT7bD+U7tB+jmjv+9z+OWpvCqH6NVzLPTKM8mwQoTm cJ8U+9gJvzQPQVQlWwV0gNSXf8laeP8p9xmU50bDyU0hSG88MyPJQcuxlUW8uAImRG7T g5qYqskoevn1WPUdpzAniQ6a51MfitcFGnhlR9NB/PDbvu06TJg/+cuoDx3PRx51X/Vq caZZYi4oAy4mpNd8OJWefuXmv14HPS3rteSOrUY5U0P9yXqJ51i5TY0Py8WkUvTms2ad XNQw== X-Received: by 10.50.97.38 with SMTP id dx6mr8433275igb.45.1370278171408; Mon, 03 Jun 2013 09:49:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.23.5 with HTTP; Mon, 3 Jun 2013 09:49:11 -0700 (PDT) Reply-To: RQuadling@GMail.com Date: Mon, 3 Jun 2013 17:49:11 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=047d7b10d1dba6826204de42bfca Subject: Random Monday thought. From: rquadling@gmail.com (Richard Quadling) --047d7b10d1dba6826204de42bfca Content-Type: text/plain; charset=UTF-8 Hi. Recently the setters/getters rfc was declined. Other than the vote, was there any technical reasons? I've been sitting here and had a thought. Currently, if I use ... I can, sort of, think of this as ... in as much as \stdClass has no constants, properties or methods. In fact, no behaviour at all. Now, could it be possible that I could have another PHP maintained base class or interface that DID support setters/getters? So, I would have to make the decision at develop time ... sort of thing. So, for classes NOT extending \stdClassThatHasSetterGetterSupport, the variable/property handling to be used is the original style. But for those base classes that do extend from \stdClassThatHasSetterGetterSupport, then these would have property support. Is this even possible/feasible? Whilst the vote went against the initial rfc, I'm happy to accept that (though I wish it had passed as I like the black boxing and the semantic cleanliness it would provide - IMHO). To me, if the internals operated as ... add if that was enough to enable setters/getters, then COULD this be a way forward for PHP supporting new functionality without breaking base functionality? In essence, turning PHP's internals into a sort of OOP framework. Regards, Richard. -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY --047d7b10d1dba6826204de42bfca--