At 11:27 AM 6/22/2003 +0200, Sebastian Bergmann wrote:
Andi Gutmans wrote:
> At least for consistency sake even though I think it's useless :)

Consistency is the key issue here, IMHO.

  A typical use case for final classes and PHP might be, at some point,
  that a software vendor distributed his PHP application in encoded
  bytecode format and wants to ensure that (security) critical classes
  cannot change their behaviour through overriding, etc.

Yeah but you can just create a remove_final($class_name) function :)
Anyway, I think the real reason for final is that it allows the Java compiler to do good optimizations (i.e. get rid of virtual calls in many cases).


Andi


-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to