diff libinterp/octave-value/ov-fcn-handle.cc @ 18441:b0aba84cf80f

Support handle to classdef constructor. * ov-classdef.cc (octave_classdef_meta::is_classdef_constructor): New method, makes the meta-object to look like a cdef constructor. * ov-fcn-handle.cc (make_fcn_handle): Handle classdef constructors like legacy class constructors.
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 08 Feb 2014 19:17:25 -0500
parents bcd71a2531d3
children f958e8cd6348
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn-handle.cc	Sat Feb 08 14:44:21 2014 -0800
+++ b/libinterp/octave-value/ov-fcn-handle.cc	Sat Feb 08 19:17:25 2014 -0500
@@ -1573,7 +1573,8 @@
   // for any class.
   if (local_funcs && fptr
       && (fptr->is_subfunction () || fptr->is_private_function ()
-          || fptr->is_class_constructor ()))
+          || fptr->is_class_constructor ()
+          || fptr->is_classdef_constructor ()))
     {
       // Locally visible function.
       retval = octave_value (new octave_fcn_handle (f, tnm));