[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Stack or heap?
- From: Andrew Starks <andrew.starks@...>
- Date: Tue, 21 Jan 2014 22:25:03 -0600
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