Mercurial > octave-nkf
changeset 9318:1a1c839625b3
fix exist for function handles and inline functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 08 Jun 2009 15:12:16 -0400 |
parents | 96abf8f7e5b6 |
children | 0d9178575dd7 |
files | src/ChangeLog src/variables.cc |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Jun 08 12:35:07 2009 -0400 +++ b/src/ChangeLog Mon Jun 08 15:12:16 2009 -0400 @@ -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 Mon Jun 08 12:35:07 2009 -0400 +++ b/src/variables.cc Mon Jun 08 15:12:16 2009 -0400 @@ -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; }