[Nice-commit] Nice/web manual.xml,1.18,1.19
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-28 21:54:15
|
Update of /cvsroot/nice/Nice/web
In directory sc8-pr-cvs1:/tmp/cvs-serv4897/web
Modified Files:
manual.xml
Log Message:
Updated the manual with the new syntax for type parameters in method
implementations.
Index: manual.xml
===================================================================
RCS file: /cvsroot/nice/Nice/web/manual.xml,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** manual.xml 26 Apr 2003 10:18:29 -0000 1.18
--- manual.xml 28 Apr 2003 21:53:59 -0000 1.19
***************
*** 534,539 ****
<para>
<literal>
- <replaceable>method-name</replaceable>
<<replaceable>type-parameters</replaceable>>
(<optional><replaceable>arguments</replaceable></optional>)
&LBRACE; body &RBRACE;
--- 534,539 ----
<para>
<literal>
<<replaceable>type-parameters</replaceable>>
+ <replaceable>method-name</replaceable>
(<optional><replaceable>arguments</replaceable></optional>)
&LBRACE; body &RBRACE;
***************
*** 548,552 ****
! /* This version won't compile because the T type isn't in scope:
lastItem(coll)
--- 548,552 ----
! /* This version is incorrect because the type parameter T is not in scope:
lastItem(coll)
***************
*** 557,571 ****
*/
- /* This one won't compile because Iterator needs a type argument:
-
- lastItem(coll)
- {
- Iterator it = coll.iterator();
- //...
- }
- */
-
// This one will work correctly:
! lastItem<T>(coll)
{
Iterator<T> = coll.iterator();
--- 557,562 ----
*/
// This one will work correctly:
! <T> lastItem(coll)
{
Iterator<T> = coll.iterator();
|