lua-users home
lua-l archive

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


As universal function to unpack hash-key-values it's great. But this might be useful for specific tables structures like Color. In that case it's better to use getfield directly. This will fulfill consistent and specific use 
On 29 Mar 2022, 12:24 +0300, 云风 Cloud Wu <cloudwu@gmail.com>, wrote:
Spar <developspartv@gmail.com> 于2022年3月29日周二 17:03写道:

The problem would be that hashing isn't consistent, relying on the order is not right

I don't care about the order, all I need is to unpack all the k/v
pairs from a table.