Home » Community » Coffee corner » Pointers or not?
Re: Pointers or not? [message #58120 is a reply to message #58103] |
Sat, 19 February 2022 22:59 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
The short answer is yes. We use stack memory instead of heap. One of the reason is better performance with stack rather than heap. Please noticed, that you could still use heap, but it is wast of time and needs extra caution. You need to remember to use free/delete. The general rule is do not use heap allocation for widgets.
More information you could find in following overview section. Also, please read the whole document very closely. There are several referrals to your question such as this.
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 19 February 2022 23:04] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 11 22:38:58 CEST 2024
Total time taken to generate the page: 0.02960 seconds
|