461
Mach4 General Discussion / Re: some strange point on last mach4 version
« on: May 30, 2019, 10:32:04 PM »
1 .i have many M function that i build and inside each there many function ,in each Mcode
always i put one on headr====>>"local inst = mc.mcGetInstance()",and no need any more
but this last version its not work ,i must put this statement on each function
You should ALWAYS get the instance in every function. That was the design. If it worked for you before, it was by accident.
2. i know that mach take all m function in 1 file ,but i never had problem when i had 2 function with same name
on 2 different M function,last version its not work ,if same name function not work ,need make each function other
name
In LUA, the last function with the same name wins. Always. Now, this version uses LUA 5.3 where the old version you were running may have used LUA 5.2 and that MAY change the order in which functions are loaded.
It is a programming error to use multiple functions with the same name.