From: Jan T. <de...@us...> - 2002-10-27 11:07:38
|
Update of /cvsroot/net-script/netscript2/src/perl/NetScript/Libraries In directory usw-pr-cvs1:/tmp/cvs-serv26158 Modified Files: ClassLibrary.pm Log Message: * corrected documentation Index: ClassLibrary.pm =================================================================== RCS file: /cvsroot/net-script/netscript2/src/perl/NetScript/Libraries/ClassLibrary.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ClassLibrary.pm 7 Aug 2002 20:13:55 -0000 1.3 --- ClassLibrary.pm 27 Oct 2002 11:07:35 -0000 1.4 *************** *** 40,47 **** # </ns:class> # ! # <ns:var name="myCar" class="car"/> <!-- Create a new instance of car --> # <ns:invoke var="myCar" method="setColor" value="red"/> # </pre> ! # New instances of objects are created via the <code><ns:var></code> # statement. The <code><ns:invoke></code>-statement executes a # method of an object instance. --- 40,47 ---- # </ns:class> # ! # <ns:new name="myCar" class="car"/> <!-- Create a new instance of car --> # <ns:invoke var="myCar" method="setColor" value="red"/> # </pre> ! # New instances of objects are created via the <code><ns:new></code> # statement. The <code><ns:invoke></code>-statement executes a # method of an object instance. |