News for hackers. Stuff that matters.
Re:Near-duplicate features of C++ (2017) by geezerjay on Friday May 24, 2019 @01:28AM (#19998740)
Qt code uses 'new' extensively because Qt components take ownership of components and manage memory allocation automatically.
Re:Near-duplicate features of C++ (2017) by hellofunk on Friday May 24, 2019 @06:51AM (#20000218)
What you describe is still common practice in the language, but the mechanisms no longer use a new or delete to achieve that.