[Scilab-users] Extraction of unusual fields of custom mlist in Scilab 6

Clément David clement.david at scilab-enterprises.com
Fri Mar 10 16:33:34 CET 2017


Hi Pierre,

Nice catch, could you open a bug on that ?

The bug is also much more understandable with :

a = mlist(['mytype']);
b = mlist(['myothertype']);
function out = %mytype_e(varargin)
    var   = varargin($);
    field = varargin(1);
    disp(typeof(varargin))
    disp(typeof(var))
    disp(typeof(field))
    out = [];
endfunction
a(b);

Which display that var and field does not have the same type nor value when there is only 1 argument
:/ .

Thanks,

--
Clément



More information about the users mailing list