[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaL_checktype
- From: "Leiradella, Andre V Matos Da Cunha" <ANDRE.LEIRADELLA@...>
- Date: Fri, 26 Oct 2001 10:00:07 -0200
So I shouldn't rename lua_rawtag to lua_tag insinde luaL_checktype but write
my own version of it that calls lua_tag, right?
Regards,
Andre de Leiradella
>Message: 3
> Date: Thu, 25 Oct 2001 14:33:03 -0500 (CDT)
> From: Roberto Ierusalimschy <rieru@delirius.cs.uiuc.edu>
>Subject: Re: luaL_checktype
>
>> > I then changed luaL_checktype to call lua_tag instead of lua_rawtag
(file
>> > lauxlib.c line 64) and now everything works just fine.
>> >
>> > The question is: am I doing something wrong? Or it's a bug in
luaL_checktype
>> > or in lua_rawtag?
>>
>> It's a bug in luaL_checktype; it should use lua_tag.
>>
>> -- Roberto
>
>My mistake. Actually, it is not a bug, but a name mismatch. Until 4.0, we
>used the term "type" to refer to "basic types"; only in 4.1 we changed it
>to "basic types and user-defined types". So, luaL_checktype should be (and
>will be) renamed to luaL_checkbasictype or luaL_checkrawtype. If we change
>lua_rawtag to lua_tag there, we will break several other functions (next,
>weakmode, rawset, etc.).
>
>Sorry about that,
>
>-- Roberto