diff src/parse.y @ 5013:1eb9ce5c0152

[project @ 2004-09-21 22:18:07 by jwe]
author jwe
date Tue, 21 Sep 2004 22:22:13 +0000
parents 2bcd013bc867
children b04b30d30c66
line wrap: on
line diff
--- a/src/parse.y	Tue Sep 21 15:45:48 2004 +0000
+++ b/src/parse.y	Tue Sep 21 22:22:13 2004 +0000
@@ -1175,6 +1175,7 @@
 		        symtab_context.push (curr_sym_tab);
 
 			tmp_local_sym_tab = new symbol_table ();
+
 			curr_sym_tab = tmp_local_sym_tab;
 
 			lexer_flags.looking_at_function_handle--;
@@ -2034,8 +2035,8 @@
 
   body->mark_as_function_body ();
 
-  octave_user_function *fcn
-    = new octave_user_function (param_list, ret_list, body, curr_sym_tab);
+  octave_value fcn (new octave_user_function (param_list, ret_list,
+					      body, curr_sym_tab));
 
   if (symtab_context.empty ())
     panic_impossible ();