Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63975 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44692 invoked from network); 19 Nov 2012 15:41:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2012 15:41:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:36038] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/A0-41116-A335AA05 for ; Mon, 19 Nov 2012 10:41:47 -0500 Received: by mail-lb0-f170.google.com with SMTP id j14so3967142lbo.29 for ; Mon, 19 Nov 2012 07:41:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=o/z03sOG6HtHiPthSf/65qt603+C9gjb4WW1wUOVu5k=; b=V5FpV2SFv6N06RGXSrr43GfRNWJ8kMFyCvsRT8KKsvudoza6BYcENoVFZ1YssSZ5x+ nskxApefZuU/0pVKYrcx2eOAh/PLmCRsYodg2+LHnavej4heXs7Cf7hyhXBjphtrYBwc UYd1jfi8az2zBHhTwmDAEfzgkNqhhFKAYXULRHqAftNbXsyCbk47uJ0FIq4mx8/cfWsg T2U8swW/HzCB5PLYJmMBuACOkUfJRU6UdsiK9KS5+53rIpjVhUgVbXH73YKA72zxCxzs 7dtS9Fxy4egectpKpJpbtgNIXM/bzfeDGd8glYivinQo6w/+ql1FkxKgRL+bkFR1ZZt9 c2Fg== MIME-Version: 1.0 Received: by 10.112.37.138 with SMTP id y10mr4970843lbj.121.1353339703633; Mon, 19 Nov 2012 07:41:43 -0800 (PST) Received: by 10.112.83.100 with HTTP; Mon, 19 Nov 2012 07:41:43 -0800 (PST) In-Reply-To: <58826104.Pqfe10HgIT@rofl> References: <508A67E6.2000405@zerocue.com> <50A39C58.6030501@zerocue.com> <58826104.Pqfe10HgIT@rofl> Date: Mon, 19 Nov 2012 16:41:43 +0100 Message-ID: To: Patrick Schaaf Cc: PHP internals , Clint Priest Content-Type: multipart/alternative; boundary=485b390f7f764ba7ab04cedaf43c Subject: Re: [PHP-DEV] [RFC] Property Accessors v1.2 : Internal Accessor Method Visibility / Callability From: nikita.ppv@gmail.com (Nikita Popov) --485b390f7f764ba7ab04cedaf43c Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 14, 2012 at 5:24 PM, Patrick Schaaf wrote: > I thought I'd made a proposal that would solve that problem, but maybe it > was > overlooked, or more likely too ugly to be recognized as such. > > Requires a single new feature / syntax, that at least I find missing right > now: > > class ... { > no methodname(); > // or > no $property; > } > > removing the specified thing from the class, with the possibility to then > redefine it. Silently ignore this when the thing doesn't exist. > Removing methods from an extending class is an LSP violation. It shouldn't be done and I don't know any languages with an object orientation system similar to PHP that allow this. I think that this "no" tagging approach wouldn't really solve anything, just patch it up in some rather ugly way. Nikita --485b390f7f764ba7ab04cedaf43c--