overloading: %p_m_r = %r_m_p (simplify the code)
Reported by Samuel GOUGEON (@sgougeon)
-- Bug description --
overloading: %p_m_r = %r_m_p (simplify the code)
-- Scilab error message --
-- How to reproduce the bug --
A proposition rather than a request:
in SCI\modules\overloading\macros\, both codes of these functions
are ~99% similar, since this multiplication is commutative.
Then, instead of maintaining twice the same code (> 2*40 lines),
would the
function [f1]=%r_m_p(f1,n2)
f1=n2*f1;
// or f1=%p_m_r(n2,f1);
endfunction
be correct and relevant in file %r_m_p.sci ?