logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Nice/debian changelog,1.207,1.208: msg#00028

Subject: Nice/debian changelog,1.207,1.208
Update of /cvsroot/nice/Nice/debian
In directory sc8-pr-cvs1:/tmp/cvs-serv27659/debian

Modified Files:
        changelog 
Log Message:
Replaced functions by methods with a default implementation.


Index: changelog
===================================================================
RCS file: /cvsroot/nice/Nice/debian/changelog,v
retrieving revision 1.207
retrieving revision 1.208
diff -C2 -d -r1.207 -r1.208
*** changelog   11 Sep 2003 20:43:16 -0000      1.207
--- changelog   11 Sep 2003 20:50:28 -0000      1.208
***************
*** 1,4 ****
--- 1,19 ----
  nice (0.9.2) unstable; urgency=low
  
+   * Removed the concept of function. Now everything is a method, which is more
+     flexible.
+     The syntax that used to define a function is still valid: it now
+     declares a method together with a default implementation. Exemple:
+       class A {
+         // Declares a method f, with a default implementation that returns 1.
+         int f() = 1;
+       }
+ 
+       class B extends A {
+         // Override f for B:
+         // When called with an argument of type B, f returns 2.
+         f() = 2;
+       }
+     The same applies for methods outside classes.
    * More dynamic type inference implemented. The type of a local variable is 
      made more precise after a succesful instanceof:




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>