Closed farhi closed 4 years ago
And we should as well use:
which is now matlab.mixin.SetGet, but still compatible. This brings set/get. Then subsasgn and subsref should call se/get. The hope is that it all gets faster by using native Matlab classes (supposed to be optimised).
Alternatively to hgsetget and mixin.SetGet, a better solution is to use our extended struct class:
The new 'estruct
' is a tentative to replace 'iData
'. Much more efficient writting, and definitively faster !
Will most certainly replace iData.
iFunc does not need such major rewrite, except copyobj and make sure we really create new objects when needed. Should be rather simple, and an opportunity for a slight code clean-up as well.
Now done with pushing estruct into iData at https://github.com/McStasMcXtrace/iFit/commit/49e84d63789b175266aaaf602f25ce619bc60a1a
This may simplify programming, especially regarding Listeners/Events/ etc. Also adds default disp/display, fields, fieldnames, ... methods.
Requires to modify copyobj, findobj, comparison operators