[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: redundant gkey and key2tval in ltable.h (5.2.0-work3)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 24 Jun 2010 13:56:34 -0300
> Lua 5.1.4 ltable.h contains this:
>
> #define gkey(n) (&(n)->i_key.nk)
> #define key2tval(n) (&(n)->i_key.tvk)
>
> Lua 5.2.0-work3 makes them identical:
>
> #define gkey(n) (&(n)->i_key.tvk)
> #define key2tval(n) (&(n)->i_key.tvk)
>
> nk (anonymous struct) and tvk (TValue) differ only in type because
> they are members of the same union. Any reason not to eliminate
> key2tval(n) ?
No, I guess.
-- Roberto