I am using the mm_root function and I noticed that the the the number of arguments is limited by 10. However I need to use more arguments. So I looked up the source Code of mm_root and tried to change the code for my needs. I want to pass 75 arguments to f, not only 10. So I changed the relevant line in the code from
local opts "o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11, o12, o13, o14, o15, o16, o17, o18, o19, o20, o21, o22, o23, o24, o25, o26, o27, o28, o29, o30, o31, o32, o33, o34, o35, o36, o37, o38, o39, o40, o41, o42, o43, o44, o45, o46, o47, o48, o49, o50, o51, o52, o53, o54, o55, o56, o57, o58, o59, o60, o61, o62, o63, o64, o65, o66, o67, o68, o69, o70, o71, o72, o73, o74, o75"
Before changing I got the following error:
mm_callf_setup(): 3001 expected 4 to 16 arguments but received 81
After changing the Code, I now get another error, which I do not understand:
mm_callf_setup(): 3001 expected 2 to 12 arguments but received 78
Trying to understand that error I made stepwise changes, e.g. I added 10 additional locals (
I will be very happy about useful hints.
local opts "o1, o2, o3, o4, o5, o6, o7, o8, o9, o10"
to:local opts "o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11, o12, o13, o14, o15, o16, o17, o18, o19, o20, o21, o22, o23, o24, o25, o26, o27, o28, o29, o30, o31, o32, o33, o34, o35, o36, o37, o38, o39, o40, o41, o42, o43, o44, o45, o46, o47, o48, o49, o50, o51, o52, o53, o54, o55, o56, o57, o58, o59, o60, o61, o62, o63, o64, o65, o66, o67, o68, o69, o70, o71, o72, o73, o74, o75"
Before changing I got the following error:
mm_callf_setup(): 3001 expected 4 to 16 arguments but received 81
After changing the Code, I now get another error, which I do not understand:
mm_callf_setup(): 3001 expected 2 to 12 arguments but received 78
Trying to understand that error I made stepwise changes, e.g. I added 10 additional locals (
local opts "o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11, o12, o13, o14, o15, o16, o17, o18, o19, o20") and so on, up to
local opts "o1, o2, o3, o4, o5, o6, o7, o8, o9, o10"
to:
local opts "o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11, o12, o13, o14, o15, o16, o17, o18, o19, o20, o21, o22, o23, o24, o25, o26, o27, o28, o29, o30, o31, o32, o33, o34, o35, o36, o37, o38, o39, o40, o41, o42, o43, o44, o45, o46, o47, o48, o49, o50, o51, o52, o53, o54, o55, o56, o57, o58, o59, o60, o61, o62, o63, o64, o65, o66, o67, o68, o69, o70, o71, o72, o73, o74". The Programm returned the error I expected: mm_callf_setup(): 3001 expected 4 to 80 arguments but received 81
That's why I don't understand the error after allowing 75 locals.I will be very happy about useful hints.
Comment