Stack or heap?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Stack or heap?
- From: Andrew Starks <andrew.starks@...>
- Date: 2014年1月21日 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