changeset 5087:7497a16d90f9

[project @ 2004-11-22 05:38:37 by jwe]
author jwe
date Mon, 22 Nov 2004 05:38:37 +0000
parents 55f5b61d74b7
children 7830f271a53f
files src/ChangeLog src/pt-arg-list.cc
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Nov 19 21:50:50 2004 +0000
+++ b/src/ChangeLog	Mon Nov 22 05:38:37 2004 +0000
@@ -1,3 +1,9 @@
+2004-11-22  John W. Eaton  <jwe@octave.org>
+
+	* pt-arg-list.cc (tree_argument_list::convert_to_const_vector):
+	Check to see whether object is a function or function handle
+	instead of constant.
+
 2004-11-19  John W. Eaton  <jwe@octave.org>
 
 	* ov-str-mat.cc (octave_char_matrix_str::do_index_op):
--- a/src/pt-arg-list.cc	Fri Nov 19 21:50:50 2004 +0000
+++ b/src/pt-arg-list.cc	Mon Nov 22 05:38:37 2004 +0000
@@ -174,7 +174,9 @@
   // way of asking an octave_value object this question?
 
   bool stash_object = (list_includes_magic_end
-		       && object && object->is_constant ());
+		       && object
+		       && ! (object->is_function ()
+			     || object->is_function_handle ()));
 
   if (stash_object)
     {