RE: [PHP-DEV] RFC: Property get/set syntax (added isset/unset and references)

From: Date: Tue, 24 Apr 2012 22:20:02 +0000
Subject: RE: [PHP-DEV] RFC: Property get/set syntax (added isset/unset and references)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-60296@lists.php.net to get a copy of this message
I will double-check (that it doesn't) but it should not per the spec, in the case of an interface this is not an automatic implementation but instead a 'must-have' declaration, which could later become an automatic implementation when defined within a class which implements that interface. -----Original Message----- From: Stas Malyshev [mailto:smalyshev@sugarcrm.com] Sent: Tuesday, April 24, 2012 12:34 PM To: Clint Priest Cc: internals@lists.php.net Subject: Re: [PHP-DEV] RFC: Property get/set syntax (added isset/unset and references) Hi! > These would also include automatic implementations which call the > respective functions on the backing field. I could see only allowing > isset/unset automatic implementations if get/set were also specified > as automatic implementations. Another thing about that. The "automatic implementation" creates variable starting with __. When exactly this happens - if all bodies are not defined? Any of the bodies are not defined? What if I implement interface like this: interface iSampleInterface { public $MyProperty { get; set; } } Does this produce automatic __MyProperty or not? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#60296) next »