From 24165a2443e79c43c3c6dc63944a5dbd245f84e6 Mon Sep 17 00:00:00 2001
From: Emiel Bruijntjes
We have decided to follow the PHP conventions, and use magic methods @@ -19,7 +21,8 @@ pretty. But by using magic methods the switch from PHP to C++ is kept simpler for starting C++ programmers. And on top of that, not all magic methods and interfaces could have been implemented with core C++ features, so we did have - to use some magic methods and/or interfaces anyway. + to use some magic methods and/or interfaces anyway - so we could just + as well follow PHP completely in this.
Besides the magic methods and functions, the Zend engine has additional @@ -32,7 +35,7 @@
If you compare two objects in PHP with comparison operators like < ==, != - > (and some others), the Zend engine runs an object comparison function. + > (and the obvious others), the Zend engine runs an object comparison function. The PHP-CPP library interupts this method, and passes the comparison method to the < operator of your class. In other words, if you want to install a custom comparison operator, you can do so by implementing operator<. -- cgit v1.2.3