2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
5 // Copyright (C) 2012 - 2016 - Scilab Enterprises
7 // This file is hereby licensed under the terms of the GNU GPL v2.0,
8 // pursuant to article 5.3.4 of the CeCILL v.2.1.
9 // This file was originally licensed under the terms of the CeCILL v2.1,
10 // and continues to be available under such terms.
11 // For more information, see the COPYING file which you should have received
12 // along with this program.
16 // <-- CLI SHELL MODE -->
18 // <-- ENGLISH IMPOSED -->
21 // This test is to check how overloading names are
23 // use mlist to define unknown type function.
25 // This test is base on the diary output.
29 "%unknown_p" // Display
30 "%unknown_e" // Extraction
31 "%unknown_i_unknown" // Insertion
32 "%unknown_t" // transpose
34 "%unknown_a_unknown" // addition
35 "%unknown_s_unknown" // subtraction
36 "%unknown_m_unknown" // mutiplication
40 "%unknown_r_unknown" // division
44 "%unknown_l_unknown" // right left division
48 "%unknown_p_unknown" // power
50 "%unknown_c_unknown" // column concat
51 "%unknown_f_unknown" // row concat
52 "%unknown_b_unknown" // implicit list
53 "%unknown_o_unknown" // equal
54 "%unknown_n_unknown" // different
55 "%unknown_g_unknown" // or
56 "%unknown_h_unknown" // and
57 "%unknown_1_unknown" // <
58 "%unknown_2_unknown" // >
59 "%unknown_3_unknown" // <=
60 "%unknown_4_unknown" // >=
65 // Generate all overloading functions...
67 for name = overloadingNames
68 execstr("function r="+name+"(varargin); " + ...
69 "disp(""Calling "+name+"...""); " + ...
77 if typeof(M) <> "unknown" then pause,end
112 // M .** M <-- This does not exist in Scilab ... Wired ...
134 // Clear all added functions
135 for name = overloadingNames
136 execstr("clear "+name);