[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua C API
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 17 May 2019 18:24:21 +0200
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