diff NEWS @ 2845:b11fb5e85dc5

[project @ 1997-03-26 23:04:05 by jwe]
author jwe
date Wed, 26 Mar 1997 23:05:15 +0000
parents 19c45d29f177
children b960bd6cbfdf
line wrap: on
line diff
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,13 @@
-Summary of changes for version 2.0.6:
-------------------------------------
+Summary of changes for version 2.1:
+----------------------------------
+
+  * It is now possible to declare static variables that retain their
+    values across function calls.  For example,
+
+      function ncall = f () static n = 0; ncall = ++n; endfunction
+
+    defines a function that returns the number of times that it has
+    been called.
 
   * Functions like quad, fsolve, and lsode can take either a function
     name or a simple function body as a string.  For example,