Hi Steve,
meanwhile I read, that there exists an API call for integers separately - but I don't like the idea of registers in that usecase any more.
The data is a table and I don't like the idea of having to read a complete table value by value ...
So I read a bit about lua and serialization and found a sample to store/load tables as single API-calls. The price is a separate file, but I'm willing to pay that price
Now the code is as clean as expected and works fine so far.
What I don't understand is the way of module loading. I got the hint, that each lua-panel is like a sandbox, where I have to reload the module.
Thats nasty
I checked the module internals and it shows, that the loaded code for a lua panel stays loaded the whole runtime of mach. That's quite ok, but there's no way of interaction with that panels elements. Neither exported variables can be accessed.
At least I found none.
So what do you think: would it be resonable to load a module and put the modules handle in a register and load that register inside the lua panel code?
That way the already loaded (and exported) variables could be accessed from different panels and the sandbox should work as before?!?
I like the idea, that a module could be treaten like a singleton
cheers Reinhard