lua-users home
lua-l archive

Re: [5.3] Converting a floating point number to integer.

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


2014年11月18日 10:16 GMT+02:00 Tim Hill <drtimhill@gmail.com>:
>> On Nov 17, 2014, at 10:29 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>
>> 2014年11月18日 6:11 GMT+02:00 Tim Hill <drtimhill@gmail.com>:
>>
>>> Now, I know what is going on, and you know what is going on.
>>> But does the average scripter know?
>>
>> Does the average scripter know what is going on with
>> metamethods, coroutines, the call stack, upvalues etc?
>>
>> Some things in Lua are hard merely because the
>> underlying computer science concept is hard.
> And your point is?
That arguments based on how "the average scripter" or
"newbies" would react are not relevant for Lua. Maybe
for Basic or Logo, but not Lua.
Lua is a highly sophisticated all-purpose language, not
particularly convenient for scripting (e.g. os.execute and
io.popen need to be invoked explicitly, no syntactic sugar).
Lua 5.3 beta has moved strongly in the direction of greater
awareness of hardware features: just look at §6.4.2, which
speaks of alignment, endianness, size_t etc assuming that
the reader knows what is going on.

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