lua-users home
lua-l archive

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


On Sat, Jan 8, 2011 at 13:28, David Kastrup <dak@gnu.org> wrote:
> GrayFace <sergroj@mail.ru> writes:
>> On 08.01.2011 14:34, David Kastrup wrote:

>>> I think it should be defined as a straight noop not changing the table
>>> at all, ever.

> insert(t,n,somefunction(...))

> where somefunction may decide not to return a value.

You can not be sure what user meant by this. Perhaps he does want to insert nil.

Note that even when this behavior is expected, this code is not
necessary bugged:

insert(t,n,somefunction(...))
insert(t,n,somefunction(...))
insert(t,n,somefunction(...))

Alexander.