changeset 10559:0ecbb17d130a

Clear global variables when 'clear -all' called Behavior now matches documentation and Matlab
author Rik <code@nomad.inbox5.com>
date Fri, 23 Apr 2010 22:07:39 -0700
parents 23c1910dbd8e
children ea79ebe99051
files src/ChangeLog src/symtab.h
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Apr 23 20:52:10 2010 -0400
+++ b/src/ChangeLog	Fri Apr 23 22:07:39 2010 -0700
@@ -1,3 +1,7 @@
+2010-04-23  Rik <octave@nomad.inbox5.com>
+
+	* symtab.h: Clear global variables when 'clear -all' called
+
 2010-04-23  John W. Eaton  <jwe@octave.org>
 
 	* DLD-FUNCTIONS/fltk_backend.cc	(OpenGL_fltk::OpenGL_fltk):
--- a/src/symtab.h	Fri Apr 23 20:52:10 2010 -0400
+++ b/src/symtab.h	Fri Apr 23 22:07:39 2010 -0700
@@ -1280,6 +1280,8 @@
   static void clear_all (void)
   {
     clear_variables ();
+    
+    clear_global_pattern ("*");
 
     clear_functions ();
   }