Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Usage of "new" and "delete" in U++
Re: Usage of "new" and "delete" in U++ [message #27151 is a reply to message #27135] Mon, 28 June 2010 20:02 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
281264 wrote on Sun, 27 June 2010 09:41

From the “manual” in the web one can see that new and delete are not present in U++. Does this mean that ALL the widgets are created statically and therefore they are created at compilation time?



No.

What is going on is that heap is considered an implementation detail that should not be exposed in any interfaces.

Thus all U++ interfaces are designed to work without heap objects and that is why you do not see many new/deletes in the normal high-level code.

Also, for program logic, most cases where heap/new/delete was/is required in normal C/C++ programming are solved by using U++ containers.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ vs Qt
Next Topic: Message from the system.
Goto Forum:
  


Current Time: Thu May 09 07:47:45 CEST 2024

Total time taken to generate the page: 0.03208 seconds