%b|s_#_s|b() overloads moved => [overloading] 22/21622/4
authorSamuel GOUGEON <sgougeon@free.fr>
Thu, 12 Nov 2020 01:53:10 +0000 (02:53 +0100)
committerClément David <clement.david@esi-group.com>
Mon, 22 Mar 2021 09:29:02 +0000 (10:29 +0100)
commitfcc2eebec9a825b7668ed0a3a82c6a7323cac7fe
treef536d45fef45f44d20e15d7e5738d9c9bc83890b
parentca27f66bf9268819a35bea3795fd7d8dd793f0bb
%b|s_#_s|b() overloads moved => [overloading]

 All these overloads have been tested to get their actual status:

* The following are now no longer called (hard-coded):
  %b_a_b(+), %b_s_b(-), %b_x_b(.*)  => removed

* All other comitted ones are still called. They are used now for more
  than 10 years in a transparent way by all users. So they can be
  considered as native, no longer only for compatibility reasons.
  => proposal to move them in [overloading]:

 - Only when s is complex:
  %b_a_s(+), %b_s_s(-), %b_d_s(./), %b_x_s(.*),
  %s_a_b,    %s_s_b,    %s_d_b(./), %s_x_b(.*)

  - When s is real or complex:
  %b_c_s([,]), %b_f_s([;]), %b_l_s,    %b_p_s(^), %b_r_s,   %b_l_b(\)
  %s_c_b([,]), %s_f_b([;]), %s_l_b(\), %s_p_b(^), %s_r_b(/), %b_r_b(/)

  %b_l_b and %b_r_b could be moved to [boolean] instead of [overloading],
  but they would then be alone in booleanlib.

Change-Id: I31ee365958c075e136a3a7b2ef184cee4acdd761
23 files changed:
scilab/modules/m2sci/macros/compat_functions/%b_a_b.sci [deleted file]
scilab/modules/m2sci/macros/compat_functions/%b_s_b.sci [deleted file]
scilab/modules/m2sci/macros/compat_functions/%b_x_b.sci [deleted file]
scilab/modules/overloading/macros/%b_a_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_a_s.sci with 91% similarity]
scilab/modules/overloading/macros/%b_c_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_c_s.sci with 95% similarity]
scilab/modules/overloading/macros/%b_d_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_d_s.sci with 91% similarity]
scilab/modules/overloading/macros/%b_f_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_f_s.sci with 95% similarity]
scilab/modules/overloading/macros/%b_l_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_l_b.sci with 94% similarity]
scilab/modules/overloading/macros/%b_l_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_l_s.sci with 91% similarity]
scilab/modules/overloading/macros/%b_p_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_p_s.sci with 96% similarity]
scilab/modules/overloading/macros/%b_r_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_r_b.sci with 90% similarity]
scilab/modules/overloading/macros/%b_r_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_r_s.sci with 96% similarity]
scilab/modules/overloading/macros/%b_s_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_s_s.sci with 96% similarity]
scilab/modules/overloading/macros/%b_x_s.sci [moved from scilab/modules/m2sci/macros/compat_functions/%b_x_s.sci with 92% similarity]
scilab/modules/overloading/macros/%s_a_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_a_b.sci with 91% similarity]
scilab/modules/overloading/macros/%s_c_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_c_b.sci with 91% similarity]
scilab/modules/overloading/macros/%s_d_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_d_b.sci with 91% similarity]
scilab/modules/overloading/macros/%s_f_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_f_b.sci with 95% similarity]
scilab/modules/overloading/macros/%s_l_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_l_b.sci with 96% similarity]
scilab/modules/overloading/macros/%s_p_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_p_b.sci with 96% similarity]
scilab/modules/overloading/macros/%s_r_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_r_b.sci with 96% similarity]
scilab/modules/overloading/macros/%s_s_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_s_b.sci with 96% similarity]
scilab/modules/overloading/macros/%s_x_b.sci [moved from scilab/modules/m2sci/macros/compat_functions/%s_x_b.sci with 88% similarity]