Autocomplete on dynamic properties

2 views (last 30 days)
Mike
Mike on 17 Mar 2014
Was the autocomplete behavior changed between 2011b and 2014a for classes using dynamic properties?
I have the following class:
classdef StructOfArray < dynamicprops
properties
fields = {};
end
methods
function out = StructOfArray(in)
out.fields = fieldnames(in);
for kk = 1:length(out.fields)
out.addprop(out.fields{kk});
out.(out.fields{kk}) = in.(out.fields{kk});
end
end
end
If I run:
a.temp = 134;
b = StructOfArray(a);
and then autocomplete b. in 2011b, I get the full list of properties (fields and temp) and methods from dynamicprops and handle. In 2014a, I only get a completion of "fields".
Was this changed, and is there a way to restore functionality similar to 2011b?

Answers (0)

Categories

Find more on Class Introspection and Metadata in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!