문제

I'm planning on suggesting to my development team that we start looking at lua instead of C++ for the project we're currently working on. On that subject I have a question that I need to clear up first.

With the current SDK, we are not allowed to use C++ exceptions due to it not being safe in multithreaded applications (created with that SDK). Actually, it is allowed, just discouraged... however the program won't compile unless we pass -fno-exceptions, so... yeah...

Anyway. Since Lua runs in it's own VM and is pure C... Would exceptions in Lua be 'safe'?

도움이 되었습니까?

해결책

If the C code that makes up the LUA interpreter is fine concerning the restrictions of your SDK then anything coded in LUA and executed with that interpreter is fine, too. But if the LUA interpreter itself is working with your unnamed SDK... that's a question that only you or the SDK vendor can answer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top