overloading of methods
Sun Apr 12 16:50:23 CEST 2009 Tobias Rautenkranz <tobias@rautenkranz.ch>
* overloading of methods
hunk ./qt.docbook 26
-<section><title>QApplication</title>
+<section><title>qt:application</title>
hunk ./smoke.docbook 49
-The C++ methods are generic functions in the <code>:cxx</code> package.
-Their lambda list is: <code>(object &amp;rest args)</code>.
+C++ methods are generic functions in the <code>:cxx</code> package.
hunk ./smoke.docbook 62
+<informalexample>
+<programlisting>(defclass the-object-does-nothing (<classname>qt:object</classname>)
+ ()
+ (:metaclass <classname>cxx:class</classname>))
+
+(defmethod cxx:timer-event ((object the-object-does-nothing) event)
+ (declare (ignore object event))
+ (call-next-method))
+</programlisting>
+</informalexample>
+<para>
+<package>:cxx</package> generic functions can be overload by argument count. Lambda list
+keywords (e.g.: <code>&amp;rest</code> and <code>&amp;key</code>) are not supported.
+</para>
+<note><para>
+Make sure you have the right number of arguments when adding a method; otherwise it will
+not be called.
+</para></note>
hunk ./smoke.docbook 116
+<caution>
hunk ./smoke.docbook 118
-Not that an instance may depend on an other one.
+An instance may depend on an other one.
hunk ./smoke.docbook 128
+</caution>