diff libinterp/octave-value/ov-classdef.cc @ 18355:9ca314e79956

Allow to call superclass constructor without arguments. * ov-classdef.cc (octave_classdef_superclass_ref::function_value): New method. * pt-funcall.h (tree_funcall::rvalue): Move definition to C++. * pt-funcall.cc (tree_funcall::rvalue): Moved from header. If the result of the function call is a single function object, re-index the function to yield the proper result it required (similar logic as in pt-id.cc).
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 23 Jan 2014 21:24:43 -0500
parents ff311e5ff6d8
children 6e3344111522
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.cc	Thu Jan 23 14:40:35 2014 -0800
+++ b/libinterp/octave-value/ov-classdef.cc	Thu Jan 23 21:24:43 2014 -0500
@@ -1040,6 +1040,8 @@
 
   ~octave_classdef_superclass_ref (void) { }
 
+  octave_function* function_value (bool = false) { return this; }
+
   octave_value_list
   subsref (const std::string& type,
            const std::list<octave_value_list>& idx,