llGetEnv typecasting?
Nexii Malthus
Should
ll.GetEnv
be updated to return the actual proper type since SLua is not a strict language? E.g. agent_limit
return a number. sim_channel
return a string, etc. See the table per https://wiki.secondlife.com/wiki/llGetEnvLog In
Sepp Schimmer
That could break some existing code. But a new llGetEnvEx function could do that.
Nexii Malthus
Sepp Schimmer would be specific to SLua which supports functions being able to return different types. The old function can just sit in the llcompat library.
Mind that a lot of existing functions have already been amended, for example for 1-indexed Lua or returning nil, so existing code would actually break when ported without amends if they don't use the llcompat library which has all the existing behaviors.