lua-users home
lua-l archive

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

Hello bb,

Wednesday, June 24, 2009, 1:33:37 AM, you wrote:

> I do not see any indispensable advantage in making holes in arrays

the problem is that nil is still used as sort of false value:

array = {"Do this action anyway",
         x==1 and "Do this action on x==1",
         string.match(str,"[0=9]+") and "Do this action on numeric str"}

Best regards,