[Nice-commit] Nice/web language.html,1.23,1.24
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2004-12-28 17:00:55
|
Update of /cvsroot/nice/Nice/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21559/Nice/web Modified Files: language.html Log Message: Make examples in the tutorial compile again. Index: language.html =================================================================== RCS file: /cvsroot/nice/Nice/web/language.html,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** language.html 10 Sep 2004 13:10:26 -0000 1.23 --- language.html 28 Dec 2004 17:00:44 -0000 1.24 *************** *** 186,190 **** <br> <PRE> ! <<FONT COLOR="#b7860b">Any T</FONT>> <FONT COLOR="#b7860b">boolean</FONT> <FONT COLOR="#cd0000">equals</FONT>(<FONT COLOR="#b7860b">T</FONT>, <FONT COLOR="#b7860b">T</FONT>); </PRE> <p> --- 186,190 ---- <br> <PRE> ! <<FONT COLOR="#b7860b">T</FONT>> <FONT COLOR="#b7860b">boolean</FONT> <FONT COLOR="#cd0000">equals</FONT>(<FONT COLOR="#b7860b">T</FONT>, <FONT COLOR="#b7860b">T</FONT>); </PRE> <p> *************** *** 204,208 **** and unconstrained types. So it would be possible to define <tt>equals</tt> to have the same typing behaviour it has in Java: ! <br><PRE><<FONT COLOR="#b7860b">Any T</FONT>, <FONT COLOR="#b7860b">Any U</FONT>> <FONT COLOR="#b7860b">boolean</FONT> <FONT COLOR="#cd0000">equals</FONT>(<FONT COLOR="#b7860b">T</FONT>, <FONT COLOR="#b7860b">U</FONT>);</PRE> <h2>Precise types</h2> --- 204,208 ---- and unconstrained types. So it would be possible to define <tt>equals</tt> to have the same typing behaviour it has in Java: ! <br><PRE><<FONT COLOR="#b7860b">T</FONT>, <FONT COLOR="#b7860b">U</FONT>> <FONT COLOR="#b7860b">boolean</FONT> <FONT COLOR="#cd0000">equals</FONT>(<FONT COLOR="#b7860b">T</FONT>, <FONT COLOR="#b7860b">U</FONT>);</PRE> <h2>Precise types</h2> *************** *** 324,328 **** <td> <blockquote> ! <pre><<font color="#B7860B">Any</font> T> T <font color="#CD0000">clone</font>(T); <font color="#CD0000">void main</font>(String[] args) --- 324,328 ---- <td> <blockquote> ! <pre><T> T <font color="#CD0000">clone</font>(T); <font color="#CD0000">void main</font>(String[] args) |