isempty() can't be overloaded for custom mlists or tlists
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
--> emptyTable = mlist('cblock'); // that's a native tabular typeof
--> isempty(emptyTable)
ans =
F
--> function r = %cblock_isempty(cb)
> r = prod(size(cb))==0
> endfunction
--> isempty(emptyTable)
ans =
F // would expect %T as with:
--> %cblock_isempty(emptyTable)
ans =
T
ERROR LOG:
----------
None. Unexpected behavior.
HOW TO REPRODUCE THE BUG:
-------------------------
emptyTable = mlist('cblock'); // that's a native tabular typeof
isempty(emptyTable)
function r = %cblock_isempty(cb)
r = prod(size(cb))==0
endfunction
isempty(emptyTable)
OTHER INFORMATION:
------------------
Same in Scilab 6.0.2