cvs: ZendEngine2 / ZEND_CHANGES
| From: | Sebastian Bergmann | Date: | Fri, 07 Mar 2003 11:51:20 +0000 |
| Subject: | cvs: ZendEngine2 / ZEND_CHANGES | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1022@lists.php.net to get a copy of this message | ||
sebastian Fri Mar 7 06:51:20 2003 EDT
Modified files:
/ZendEngine2 ZEND_CHANGES
Log:
Document 'final'.
Index: ZendEngine2/ZEND_CHANGES
diff -u ZendEngine2/ZEND_CHANGES:1.53 ZendEngine2/ZEND_CHANGES:1.54
--- ZendEngine2/ZEND_CHANGES:1.53 Fri Mar 7 01:29:07 2003
+++ ZendEngine2/ZEND_CHANGES Fri Mar 7 06:51:19 2003
@@ -205,6 +205,25 @@
This syntax only applies to objects/classes, not built-in types.
+ * final.
+
+ The Zend Engine 2.0 introduces the "final" keyword to declare
+ final members and methods. Those cannot be overridden by
+ sub-classes.
+
+ Example:
+
+ <?php
+ class Foo {
+ final function bar() {
+ // ...
+ }
+ }
+ ?>
+
+ Old code that has no user-defined classes or functions named
+ 'final' should run without modifications.
+
* Object Cloning.
The Zend Engine 1.0 offered no way a user could decide what copy