changeset 11977:854863bb29e8 release-3-2-x

fix exist for function handles and inline functions
author John W. Eaton <jwe@octave.org>
date Tue, 09 Jun 2009 06:33:10 +0200
parents 67461f17c12a
children 5d0dcd492f9f
files src/ChangeLog src/variables.cc
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-08  John W. Eaton  <jwe@octave.org>
+
+	* variables.cc (symbol_exist): Returnn 1 for function handles and
+	inline function objects.
+
 2009-06-08  Jaroslav Hajek  <highegg@gmail.com>
 
 	* symtab.h (symbol_table::do_clear_global,
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -409,7 +409,8 @@
       if (! retval
 	  && var_ok
 	  && (type == "any" || type == "var")
-	  && (val.is_constant () || val.is_object ()))
+	  && (val.is_constant () || val.is_object ()
+	      || val.is_inline_function () || val.is_function_handle ()))
 	{
 	  retval = 1;
 	}