lua-users home
lua-l archive

Re: [ANN] Lua 5.3.0 (rc1) now available

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


2014年12月19日 11:34 GMT+02:00 Pierre Chapuis <catwell@archlinux.us>:
>> BTW, Lua 5.3 has two macros that allow you to disable those automatic
>> coercions, if you want to try.
>>
>> -DLUA_NOCVTN2S to disable conversion from numbers to strings
>> -DLUA_NOCVTS2N to disable conversion from strings to numbers
>
> Nice! Would it be easy to make this a dynamic option
> instead of a compile-time one?
Each option affects the definition of a macro, which appears in the definition
of other macros, which appear ...
So I'd say: not easy, and even if possible, it will affect performance.

AltStyle によって変換されたページ (->オリジナル) /