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 » Tell me more about U++ please.
Re: Tell me more about U++ please. [message #32045 is a reply to message #32039] Tue, 19 April 2011 07:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Lance wrote on Tue, 19 April 2011 00:12

A side topic:

With RValue reference introduction in C++0x and currently available in more recent version of VC++ and g++, the driving force behind maybe Mirek's invention of the Upp pick semantics seems to be no longer exist. Anything we currently pick, we can do it with move constructor and move assignment.



There is one technical reason not to convert to move operator: It does not provide composition rules.

In U++

struct Foo {
    int x;
    Vector<Bar> bar;
};


automatically gets compiler generated pick constructor/assignement. With move operator, you would have to implement them. Which is quite tedious and error-prone especially if you have more member variables.

[Updated on: Tue, 19 April 2011 07:47]

Report message to a moderator

 
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: Image in database
Next Topic: Add line to pop_up box
Goto Forum:
  


Current Time: Sun Aug 24 10:11:01 CEST 2025

Total time taken to generate the page: 0.04474 seconds