diff src/ov-fcn-handle.cc @ 11220:883b9308353c

allow class function to be called from methods as well as constructors
author John W. Eaton <jwe@octave.org>
date Wed, 10 Nov 2010 00:54:34 -0500
parents 54697b37d8bf
children 64e7538db12a
line wrap: on
line diff
--- a/src/ov-fcn-handle.cc	Tue Nov 09 21:02:44 2010 -0800
+++ b/src/ov-fcn-handle.cc	Wed Nov 10 00:54:34 2010 -0500
@@ -1493,8 +1493,11 @@
 
   octave_value f = symbol_table::find_function (tnm, octave_value_list (),
                                                 local_funcs);
+
   octave_function *fptr = f.function_value (true);
 
+  // Here we are just looking to see if FCN is a method or constructor
+  // for any class.
   if (local_funcs && fptr 
       && (fptr->is_nested_function () || fptr->is_private_function ()
           || fptr->is_class_constructor ()))