final is b0rk b0rk b0rk

From: Date: Fri, 18 Apr 2003 17:12:04 +0000
Subject: final is b0rk b0rk b0rk
Groups: php.internals 
Request: Send a blank email to internals+get-960@lists.php.net to get a copy of this message
<?php class foo { final public $bar = 10; } $f = new foo; $a = 'bar'; $f->$a = 20; echo $f->bar; ?> outputs : 20 Final needs to be runtime. -Sterling 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. -- "People can have the Model T in any colour -- so long as it's black." - Henry Ford

« previous php.internals (#960) next »