Re: Re: aggregate() und overload()

From: Date: Wed, 10 Apr 2002 00:57:00 +0000
Subject: Re: Re: aggregate() und overload()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-82420@lists.php.net to get a copy of this message
If we had it, I think it would need to be a little bit more concise; it looks a little bit messy (sorry Marcus!). class A { private var $_X; protected function set_X($newX) { $this->_X = $newX; } public property X read $_X, write set_X; } On 10/04/02, "Shane Caraveo" <shane@caraveo.com> wrote: > > What if we would use declared properties? > > class A { > > private var $_X; > > > > protected function set_X($newX) { > > $this->_X = $newX; > > } > > > > public property X = { read = $_X, write = set_X}; > > } > > marcus > I have to say, I wouldn't mind having this syntax in PHP.

« previous php.dev (#82420) next »