[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: type mismatches...
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 15 Jul 1999 10:37:27 -0300 (EST)
>From lua-l@tecgraf.puc-rio.br Thu Jul 15 10:27:13 1999
>From: erik@hougaard.com (Erik Hougaard)
>Luiz Henrique de Figueiredo wrote:
>> No. The idea is that Lua's API uses only primitive types (except for lua_Object,
>> which is opaque).
>> --lhf
>
>This may be a dumb question, but why? Why make a macro 'real' and then
>only use it 99% - I see a lot of other macros in the lua.h header ??
I don't like the idea of a programmer having to use all sorts of 'magic'
types to get things done. For instance, in OpenGL, I think it's silly to
have GLint, GLfloat and the like. So, I prefer API's that use only primitive
types -- it seems easier for the programmer.
But we (the Lua team) are discussing if this makes real sense or not, given
that we are considering adding support for Unicode in Lua.
--lhf