diff src/pt-fcn-handle.cc @ 8032:2fd4a5ef6b59

stash parent function scope for inline functions and anonymous function handles.
author John W. Eaton <jwe@octave.org>
date Tue, 12 Aug 2008 16:26:53 -0400
parents 71f068b22fcc
children 24701aa75ecb
line wrap: on
line diff
--- a/src/pt-fcn-handle.cc	Tue Aug 12 13:20:27 2008 -0400
+++ b/src/pt-fcn-handle.cc	Tue Aug 12 16:26:53 2008 -0400
@@ -112,7 +112,10 @@
   octave_function *curr_fcn = octave_call_stack::current ();
 
   if (curr_fcn)
-    uf->stash_parent_fcn_name (curr_fcn->name ());
+    {
+      uf->stash_parent_fcn_name (curr_fcn->name ());
+      uf->stash_parent_fcn_scope (curr_fcn->scope ());
+    }
 
   uf->mark_as_inline_function ();