lua-users home
lua-l archive

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


msg = function(a, b, c)

  return function()
    return a, b, c
  end
end


Let's say that I call this a bunch of times, sending it as a "message" to another function, which may store them in a cue, for later processing. 

Are the instances of "a, b, c" on the heap (garbage collected) or in the stack?

This may be a dumb question. I apologize if it is. 

-Andrew