diff NEWS @ 12400:5252f12537f8

don't warn about coercing nested functions to subfunctions if yyparse failed
author John W. Eaton <jwe@octave.org>
date Tue, 08 Feb 2011 03:22:12 -0500
parents abcd61f965e5
children b7d0d6044bd7 ecc90fe7c838
line wrap: on
line diff
--- a/NEWS	Sun Feb 06 21:11:01 2011 -0500
+++ b/NEWS	Tue Feb 08 03:22:12 2011 -0500
@@ -575,6 +575,18 @@
 
     the lines "s *= y;" and "t = y + x" will not be executed.
 
+ ** If any subfunction in a file ends with "end" or "endfunction", then
+    they all must end that way.  Previously, Octave accepted
+
+      function main ()
+        ...
+      # no endfunction here.
+      function sub ()
+        ...
+      endfunction
+
+    but this is no longer allowed.
+
  ** Special treatment in the parser of expressions like "a' * b".
 
     In these cases the transpose is no longer explicitly formed and