[Nice-commit] Nice/debian changelog,1.184,1.185
Brought to you by:
bonniot
From: <ar...@us...> - 2003-07-05 17:25:37
|
Update of /cvsroot/nice/Nice/debian In directory sc8-pr-cvs1:/tmp/cvs-serv7696/F:/nice/debian Modified Files: changelog Log Message: update of changelog. Index: changelog =================================================================== RCS file: /cvsroot/nice/Nice/debian/changelog,v retrieving revision 1.184 retrieving revision 1.185 diff -C2 -d -r1.184 -r1.185 *** changelog 22 Jun 2003 09:57:23 -0000 1.184 --- changelog 5 Jul 2003 17:25:34 -0000 1.185 *************** *** 1,4 **** --- 1,9 ---- nice (0.9.0) unstable; urgency=low + * The names of the arguments of a default implementation of a method should + be the same as the names in the declaration. + void foo(int number); + foo(number) { ... } //correct + //void foo(n) { ... } //not valid * Added dispatch on String literals. This can be used as a switch on Strings. void foo(String color); *************** *** 8,28 **** * Added dispatch on global constants whose value is a literal. Example: let int specialValue = 7; ! void foo(int); foo(n) { /*do something*/ } ! foo(=specialValue) { /*do something else*/ } * Dispatch on global constants works also for unique references(new objects). class Color {} ! let Color red = new Color(); ! let Color blue = new Color(); ! String name(Color); name(color) = "unknown color"; ! name(=red) = "red"; ! name(=blue) = "blue"; * Implemented simple enums. The above color example can be simplified to: ! enum Color { red, blue, green } String name(Color); ! name(=red) = "red"; ! name(=blue) = "blue"; ! name(=green) = "green"; The compiler knows now that the method "name" is completely covered. * Added operator ** to calculate powers of longs, doubles and BigIntegers. --- 13,33 ---- * Added dispatch on global constants whose value is a literal. Example: let int specialValue = 7; ! void foo(int n); foo(n) { /*do something*/ } ! foo(specialValue) { /*do something else*/ } * Dispatch on global constants works also for unique references(new objects). class Color {} ! let Color Red = new Color(); ! let Color Blue = new Color(); ! String name(Color color); name(color) = "unknown color"; ! name(Red) = "red"; ! name(Blue) = "blue"; * Implemented simple enums. The above color example can be simplified to: ! enum Color { Red, Blue, Green } String name(Color); ! name(Red) = "red"; ! name(Blue) = "blue"; ! name(Green) = "green"; The compiler knows now that the method "name" is completely covered. * Added operator ** to calculate powers of longs, doubles and BigIntegers. |