Hello Leonardo,
Thanks for your suggestion, which seems very interesting. I am a bit hesitant to go this way because I would be more confident in a lua version that is compiled with no potentially harmful functions, than to try to prevent to execute them at runtime. But maybe am I wrong on that point.
I will perform some tests with your solution.
But in all cases, I would be very interested to understand how a lua interpreter compiled without "luaopen_base" library initialisation call could still perform print function. For other functions I tested, this solution seemed to be concluant. But for this very particular function, my technique seems not to work. I do not really need to deactivate print function, as it is not really harmful, but I would be more confident in the technique if I understand why it does not behaves like I would have expected.
Any idea ?
Regards,
Brice