a:b:c : Generating numerical series: Strange unconsistent casting behaviour (low
Reported by Samuel GOUGEON (@sgougeon)
-- Bug description --
a:b:c : Generating numerical series: Strange unconsistent casting behaviour (low priority bug)
-- Scilab error message --
-->A=1:uint16(4), typeof(A)
A =
1 2 3 4
ans =
uint16
// OK
-->A=uint8(1):uint16(4), typeof(A)
!--error 144
Undefined operation for the given operands.
check or define function %i_b_i for overloading.
// Ambiguity => OK, but a policy consistent with the following could be set:
-->A=uint8(1):1:uint16(4), typeof(A)
A =
1 2 3 4
ans =
uint8
// The fact that the step=1 becomes explicit unexpectedly fix the issue
-- How to reproduce the bug --