[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Definition of table.insert
- From: David Kastrup <dak@...>
- Date: Sat, 08 Jan 2011 09:34:10 +0100
Henning Diedrich <hd2010@eonblast.com> writes:
> Hi Dirk,
>
> Just to get it straight: can it ever make sense to insert nil using
> table.insert()?
>
> 'Should' that not rather throw an error, because any table.insert()
> after that could have undefined behavior?
>
> Isn't it pretty much guaranteed you'd never want to do |table.
> insert(t,n,nil)|?
I think it should be defined as a straight noop not changing the table
at all, ever.
--
David Kastrup