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 » Developing U++ » U++ Developers corner » Proposed change to U++ to allow owning children.
Re: Proposed change to U++ to allow owning children. [message #31694 is a reply to message #31691] Sun, 20 March 2011 14:07 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
Thanks, kohait00! As mirek has demonstrated, it's not hard.

The only issue is if it's worthy. Paying the cost of an additional container ( I didn't look into Array implementation, from its interface, it's probably an Vector of pointers pointing to individually allocated objects. The user would not feel a difference. But still there are memory cost & speed cost paid.) so that Upp libary users can do without manual new/delete, that's something I cannot appreciate at my current level or mindset.

It's really a philosophical/religious difference. Many ones believe pointers are evil, Java go as far as do away with it completely, but that doesn't make the small bunch us to leave C++ and embrace it.

C++ also encourages using its library and smart pointers to minimize the chances to use new or have to keep track of new'ed objects. But it certainly doesn't go as far as declaring new/delete a privilege of library developers only.

Anyway, this is really unimportant. As I have said, we stand no chance to convince mirek, who have achieved so much with the sticking to his philosophy, plus the cost is but minimal.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Get MAC addresses for windows and linux
Next Topic: Testing framework in U++.
Goto Forum:
  


Current Time: Tue May 14 23:27:38 CEST 2024

Total time taken to generate the page: 0.02581 seconds