Am 18.08.2015 um 13:41 schrieb Chris Berardi:
On Tuesday, August 18, 2015, Dirk Laurie
<dirk.laurie@gmail.com>
wrote:
2015-08-17
21:22 GMT+02:00 Petite Abeille <petite.abeille@gmail.com>:
>> On Aug 17, 2015, at 9:15 PM, Dirk Laurie <dirk.laurie@gmail.com>
wrote:
>>
>> But it won't work as expected when str1 and str2 both
>> are convertible to numbers.
>
> LUA_NOCVTN2S
> LUA_NOCVTS2N
Who on this list invokes "lua", their everyday Lua interpreter,
and what gets executed is Lua 5.3 compiled with those two
options on? Put up your hands, please.
I think it would be nice to be able to set these and other
(currently only) compile time flags at runtime. Something like
set_flag(LUA_NOCVTS2N, true)
That way you're not beholden to how the interpreter was
compiled to get a desired behavior.
BAD Idea.
One module author set the flag one way - an other module author set
the flag the other way.
(i already see the upcoming flame wars between the different
authors) ;)
Fuzzlix.
Not if the module author isolates their environment from the global one. |