[Nice-commit] Nice NEWS,1.37,1.38
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2004-07-20 22:37:59
|
Update of /cvsroot/nice/Nice In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19902 Modified Files: NEWS Log Message: Take instanceof assertions into account in the typechecker (implements rfe #923854). Index: NEWS =================================================================== RCS file: /cvsroot/nice/Nice/NEWS,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** NEWS 29 Jun 2004 18:57:20 -0000 1.37 --- NEWS 20 Jul 2004 22:37:50 -0000 1.38 *************** *** 1,2 **** --- 1,13 ---- + nice (0.9.9) + + * Assertions about the type of variables are used by the typechecker, so that + casts are not necessary. For instance: + Object o = ...; + // We happen to know by design than the object must be a string + assert o instanceof String; + // Here o can be used as a string without cast + + -- + nice (0.9.8) |