Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • "the referenced int will be put on the stack" is not true, your example puts it on the stack with var i = 7; but ref would also work if it referenced a field of an object on the heap, or an element of an array.
    – Jon Hanna
    Commented Jan 2, 2016 at 19:50
  • @JonHanna Please read forward my answer. I edited the first sentence so it is more clear which case i am referring to Commented Jan 2, 2016 at 20:00
  • Yep. That nit picked, +1.
    – Jon Hanna
    Commented Jan 2, 2016 at 22:13