Re: Class Properties in Interfaces?

From: Date: Wed, 30 Apr 2008 19:44:22 +0000
Subject: Re: Class Properties in Interfaces?
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-37387@lists.php.net to get a copy of this message
Am Mittwoch, den 30.04.2008, 12:25 -0700 schrieb Stanislav Malyshev: [...] > How? For that you'd need the interpreter to actually understand what the > code does. While I'd like to have such thing one day (provided it does > not rebel and decide to kill all humans, of course ;) PHP interpreter is > definitely not it. Take a look at this: class Mother { public $foo  {     function get()  { }  } } class Child extends Mother {  public $foo { } } In Child $foo is redefined without a getter-method. This breaks the substitution principle and the language can detect this. cu, Lars

Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
« previous php.internals (#37387) next »