From: George H. <geo...@us...> - 2006-01-05 11:05:18
|
Update of /cvsroot/win32forth/win32forth/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21905/win32forth/doc Modified Files: p-gethelp.htm Log Message: gah: Documented warning for method hash clashes Index: p-gethelp.htm =================================================================== RCS file: /cvsroot/win32forth/win32forth/doc/p-gethelp.htm,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** p-gethelp.htm 26 Apr 2005 07:40:02 -0000 1.3 --- p-gethelp.htm 5 Jan 2006 11:05:04 -0000 1.4 *************** *** 333,341 **** </tr> <tr> ! <td style="font-weight: normal; color: black; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid green; background-color: #CCCCCC" width="212" align="center"> -4104</td> ! <td style="font-weight: normal; color: black; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid green; background-color: #CCCCCC" width="356"> <span class="fixedfont"><a href="#Warning(-4104)">is a deprecated word</a></span></td> </tr> </table> </center> --- 333,347 ---- </tr> <tr> ! <td style="font-weight: normal; color: black; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid green; background-color: #FFFFDD" width="212" align="center"> -4104</td> ! <td style="font-weight: normal; color: black; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid green; background-color: #FFFFDD" width="356"> <span class="fixedfont"><a href="#Warning(-4104)">is a deprecated word</a></span></td> </tr> + <tr> + <td style="font-weight: normal; color: black; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid green; background-color: #CCCCCC" width="212" align="center"> + -4105</td> + <td style="font-weight: normal; color: black; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid green; background-color: #CCCCCC" width="356"> + <span class="fixedfont"><a href="#Warning(-4105)">has a hash value that is already recognised by this class."</a></span></td> + </tr> </table> </center> *************** *** 1011,1014 **** --- 1017,1039 ---- DPR-WARNING-OFF</a></span>. Otherwise, realise that your application might not work with new Win32Forth Versions in the future.</p> + + <hr> + <p><span class="fixedfont"><font size="4"><b><a name="Warning(-4105)"> + Warning(-4105)</a></b></font></span><b><span class="fixedfont"><font size="4">: + has a hash value that is already recognised by this class</font></span></b></p> + <p><b>Summary: </b>Warning. There are two or more methods in the + same class, or an ancestor. The last method is the one in force. </p> + <p><b>Example:</b></p> + <blockquote> + <pre><b>:m getPeriodY: ." Executing GetPeriodY" ;m</b> ok + <b>:m setperiods: ." Executing SetPeriods" ;m</b> + ^^^^^^^^^^^ + Warning(-4105): SETPERIODS: has a hash value that is already recognised by this class. ok</pre> + </blockquote> + <p><b>Resolution: </b>Hashing method names is not perfect, so very occassionally clashes + may occur. Try renaming the method. If the method that the new method clashes with is in + an ancestor, and is not needed by this class then you can ignore the warning. + If so, and this is annoying you, then turn off warnings with + <span class="fixedfont"><a href="#Suppressing Warnings">WARNING OFF</a></span>. </p> <hr> <p><b><span class="fixedfont"><font size="4"><a name="Error(9998)">Error(9998)</a>: <name> |