lua-users home
lua-l archive

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


On Sat, Aug 23, 2014 at 12:28 AM, Philipp Janda <siffiejoe@gmx.net> wrote:
> Am 23.08.2014 um 09:14 schröbte Philipp Janda:
>>
>>
>> Depends on the C library (and the person who did the binding): I have an
>> incomplete binding to APR (just APR, no APR-Util, no threading, no
>> network io) with 15 different userdata types, and a very incomplete
>> binding to SDL with 17 different userdata types.
>
>
> Make that 27 userdata types for SDL, the different events were hidden behind
> a macro.

I know this isn't enforced and people are free to do what they may; in
some projects I prefix the userdata type with the library name (if
it's short).  I find it to be a good practice in case my library is a
third-party to someone else's project.