lua-users home
lua-l archive

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

> Couldn't a lot of ambiguity and unexpected behavior avoided by keeping
> nil but introducing two new functions to the table library called
> "table.has(t,key)" and "table.delete(t,key,[to])" - and dropping the
> deletion via assigning nil?

At last something new and worth a discussion. Does anyone see problems/
incompatibilities/etc. with this?

(But what is "[to]"?)

Keep in mind that #t would still be undefined for arrays with holes,
but holes would be much less frequent...

-- Roberto