Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63396 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74437 invoked from network); 13 Oct 2012 12:49:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2012 12:49:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 74.115.204.40 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 74.115.204.40 relay-hub204.domainlocalhost.com Received: from [74.115.204.40] ([74.115.204.40:46579] helo=relay-hub204.domainlocalhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/AC-06472-66369705 for ; Sat, 13 Oct 2012 08:49:43 -0400 Received: from MBX202.domain.local ([169.254.169.44]) by HUB204.domain.local ([192.168.68.48]) with mapi id 14.02.0283.003; Sat, 13 Oct 2012 08:48:53 -0400 To: Amaury Bouchard CC: Nikita Popov , Benjamin Eberlei , "internals@lists.php.net" Thread-Topic: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 Thread-Index: Ac2oOZ3+vAOzWRcnRpOb6a/hOVK5+ABAY8yAAALpNQAAAUOoAAAEr8EwAACGpYAAB+4qMA== Date: Sat, 13 Oct 2012 12:48:52 +0000 Message-ID: <9570D903A3BECE4092E924C2985CE485612B5A54@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE485612B53E4@MBX202.domain.local> <9570D903A3BECE4092E924C2985CE485612B59F6@MBX202.domain.local> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.64.26] Content-Type: multipart/alternative; boundary="_000_9570D903A3BECE4092E924C2985CE485612B5A54MBX202domainloc_" MIME-Version: 1.0 Subject: RE: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 From: cpriest@zerocue.com (Clint Priest) --_000_9570D903A3BECE4092E924C2985CE485612B5A54MBX202domainloc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Interfaces are used to define what methods must be present, properties are = not allowed. Yes, so no one should be correct, right? I mean, yes the first declaration implies some code; but for the interface,= it's still a property definition. You're mixing concepts here, it's an accessor definition, not a property de= finition. property !=3D accessor, an accessor just happens to look and act= like a property (which is the point of accessors). From: amaury.bouchard@gmail.com [mailto:a= maury.bouchard@gmail.com] On Behalf Of Am= aury Bouchard Sent: Saturday, October 13, 2012 5:06 AM To: Nikita Popov Cc: Benjamin Eberlei; Clint Priest; internals@lists.php.net Subject: Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 2012/10/13 Nikita Popov > interface Foo { // this is okay public $abc { get; set; } // this is invalid public $abc; } Sorry, I missed something. Why the first should be correct but not the seco= nd one? For me it's exactly the same thing. --_000_9570D903A3BECE4092E924C2985CE485612B5A54MBX202domainloc_--