lua-users home
lua-l archive

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


Op Vr. 17 Mei 2019 om 17:14 het Jim <djvaios@gmail.com> geskryf:
>
> when looking at Lua's C API i wondered why many of the API functions
> do not return a result where that would make sense and just return
> "void" (i. e. nothing), for example:

TL;DR

The Lua API has evolved incrementally over over twenty years.
Compatibility as far as possible with the previous version seems to be
a design goal. Changes similar to what you propose have occasionally
been made when the authors of the code needed the functionality,
usuallly with a change in the name.

-- Dirk