[Nice-commit] Nice/debian changelog,1.186,1.187
Brought to you by:
bonniot
From: <ar...@us...> - 2003-07-12 23:13:18
|
Update of /cvsroot/nice/Nice/debian In directory sc8-pr-cvs1:/tmp/cvs-serv29615/F:/nice/debian Modified Files: changelog Log Message: Update of changelog and an additional testcase. Index: changelog =================================================================== RCS file: /cvsroot/nice/Nice/debian/changelog,v retrieving revision 1.186 retrieving revision 1.187 diff -C2 -d -r1.186 -r1.187 *** changelog 5 Jul 2003 17:28:27 -0000 1.186 --- changelog 12 Jul 2003 23:13:12 -0000 1.187 *************** *** 1,4 **** --- 1,15 ---- nice (0.9.0) unstable; urgency=low + * Implemented dispatch by integer comparison. An example: + int abs(int n); + abs(n>=0) = n; + abs(n<0) = -n; + The compiler knows that method abs is covered for all int values. + It's also possible to compare with globalconstants: + let int bar = 5; + String foo(int n); + foo(n<bar) = "smaller than bar"; + foo(bar) = "equal to bar"; + foo(n>bar) = "larger than bar"; * The names of the arguments of a default implementation of a method should be the same as the names in the declaration. |