lua-users home
lua-l archive

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


On Fri, Dec 11, 2009 at 11:52 AM, cynthia powers <powcyn@gmail.com> wrote:
> I have a c function called in a while loop from lua. This function accesses
> a global array and is supposed to return the next member of the array in
> each call.

How does it remember state, so that it returns the next member? Is
this also global (and C global or Lua global?)

If you can present the function and its call in less than a hundred
lines, I reckon we could help further