diff libinterp/corefcn/variables.cc @ 19302:fa48651fbb8a

isstruct for classdef objects should not return true. * ov.h (octave_value::is_classdef_object): New method. * ov-base.h (octave_base_value::is_classdef_object): Likewise. * ov-classdef.h (octave_classdef::is_classdef_object): Likewise. (octave_classdef::is_map): Return false. * variables.cc (generate_struct_completions): Do auto-completion for classdef objects too.
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 20 Sep 2014 17:16:56 -0400
parents cc8aaf9c9e33
children 0f9c5a15c8fa
line wrap: on
line diff
--- a/libinterp/corefcn/variables.cc
+++ b/libinterp/corefcn/variables.cc
@@ -283,7 +283,8 @@
 
           frame.run ();
 
-          if (tmp.is_defined () && (tmp.is_map () || tmp.is_java ()))
+          if (tmp.is_defined () &&
+              (tmp.is_map () || tmp.is_java () || tmp.is_classdef_object ()))
             names = tmp.map_keys ();
         }
     }