vrana Tue Mar 15 05:01:14 2005 EDT
Modified files:
/ZendAPI Extending_Zend_CopyConstructor.xml
Log:
User notes by spambo at nomeaning dot net
http://cvs.php.net/diff.php/ZendAPI/Extending_Zend_CopyConstructor.xml?r1=1.6&r2=1.7&ty=u
Index: ZendAPI/Extending_Zend_CopyConstructor.xml
diff -u ZendAPI/Extending_Zend_CopyConstructor.xml:1.6
ZendAPI/Extending_Zend_CopyConstructor.xml:1.7
--- ZendAPI/Extending_Zend_CopyConstructor.xml:1.6 Mon Feb 11 05:10:33 2002
+++ ZendAPI/Extending_Zend_CopyConstructor.xml Tue Mar 15 05:01:11 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <!-- $Revision: 1.6 $ -->
+ <!-- $Revision: 1.7 $ -->
<chapter id="zend.copy-constructor">
<title>Duplicating Variable Contents: The Copy Constructor</title>
<para>
@@ -19,8 +19,8 @@
purpose of copying complex types. If you define an object in such a
language, you have the possibility of overloading the "=" operator,
which is usually responsible for assigning the contents of the
- lvalue (result of the evaluation of the left side of the operator)
- to the rvalue (same for the right side).
+ rvalue (result of the evaluation of the right side of the operator)
+ to the lvalue (same for the left side).
</para>
<para>
<emphasis>Overloading</emphasis> means assigning a different
@@ -57,7 +57,7 @@
// do modifications to the parameter here
// now we want to return the modified container:
-*return_value == *parameter;
+*return_value = *parameter;
zval_copy_ctor(return_value);
</programlisting>
<para>