diff libinterp/octave-value/ov-base.h @ 18316:ff311e5ff6d8

Don't call classdef-overloaded subsref from builtin calls. * ov-class.cc (called_from_builtin): Moved to ov-base.cc. * ov-base.cc (called_from_builtin): Moved from ov-class.cc. * ov-base.h (called_from_builtin): Declare in octave API. * ov-classdef.cc (octave_classdef::subsref): Don't call overloaded subsref when called from "builtin".
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 20 Jan 2014 22:16:22 -0500
parents 06eb893b9db6
children bcd71a2531d3
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.h	Mon Jan 20 14:10:42 2014 -0500
+++ b/libinterp/octave-value/ov-base.h	Mon Jan 20 22:16:22 2014 -0500
@@ -836,4 +836,8 @@
                const std::list<octave_value_list>& idx,
                const std::string& who);
 
+// Tells whether some regular octave_value_base methods are being called from
+// within the "builtin" function.
+extern OCTINTERP_API bool called_from_builtin (void);
+
 #endif