overloading: min(mlist("test")) calls %c_min() instead of %test_min(). Same bug for max()
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
function r = %test_min(a)
disp("%test_min() called: OK")
r = %t
endfunction
min(mlist("test"))
Scilab 5.5.2
~~~~~~~~~~~~
-->min(mlist("test"))
%test_min() called: OK
ans =
T
Scilab 6.0.0
~~~~~~~~~~~~
--> min(mlist("test"))
in builtin min
Function not defined for given argument type(s),
check arguments or define function %c_min for overloading.
==> Same issue with max()
ERROR LOG:
----------
See hereabove
HOW TO REPRODUCE THE BUG:
-------------------------
function r = %test_min(a)
disp("%test_min() called: OK")
r = %t
endfunction
min(mlist("test"))
function r = %test_max(a)
disp("%test_max() called: OK")
r = %t
endfunction
max(mlist("test"))
OTHER INFORMATION:
------------------
These bugs prevent using proper overloads of min() and max() in Image processing toolboxes where images are embedded in mlists.