RE: [PHP-DEV] final is b0rk b0rk b0rk

From: Date: Fri, 18 Apr 2003 18:51:03 +0000
Subject: RE: [PHP-DEV] final is b0rk b0rk b0rk
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-961@lists.php.net to get a copy of this message
Sterling Hughes wrote: > <?php > class foo { > final public $bar = 10; > } > > $f = new foo; > $a = 'bar'; > $f->$a = 20; > echo $f->bar; > ?> [b0rk3d output snipped] > > PS: Insert mention of how this feature doesn't belong in a language like > php here. Also mention that interfaces/abstract suffer from the same > problem, and should be removed for the same reason. +1 for removing _all_ that stuff. :P Best Regards Mike Robinson

« previous php.internals (#961) next »