lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thanks for the quick reply.

1)

> local LUA version
> next version of LUA will

https://www.lua.org/about.html#name

> Please do not write it as "LUA", which is both ugly and confusing, because
then it becomes an acronym with different meanings[1] for different people.
So, please, write "Lua" right!

[1] http://acronyms.thefreedictionary.com/lua


Sorry about that :-P
And good to hear that the next version will fix this.
 
2)
> int      system(const char *) __DARWIN_ALIAS_C(system);

Are they provide any official replacement for that (the command to call
external application and receive the output)?


Up until iOS 10 they used to flag it as deprecated with the following message:

'system' is deprecated: first deprecated in iOS 8.0 - Use posix_spawn APIs instead.

But posix_spawn isn't exactly like system(). They are quite different.
At the same time posix_spawn isn't available on tvOS and watchOS and it wouldn't be a surprise that calling it in an iOS application would either silently fail or flag your app as using APIs that shouldn't be used. Or even worse it might be removed in the next iteration of iOS.

It would probably help to speak with someone at Apple to understand the extent of the decision of removing system() entirely.

Cheers.

Valerio Santinelli