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
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
