Many tutorials say that reference types are made on a heap and only the final reference can be destroyed after it disappears.
By contrast, price types are created on the stack and automatically disappear after leaving the scope. This information can be found in many publications.
But I could not understand the reason that the reference types are not destroyed in the case of price types only.
No comments:
Post a Comment